Description
When I try to use NTLM-Auth, I get the following error message:
"WARNING: NEGOTIATE authentication error: Invalid name provided (Mechanism level: KrbException: Cannot locate default realm)"
I think it could be because:
-
Kerberos switching to NTLM. Since the Authscope takes 3 args of nil -1 nil here, which probably does not let the realm switch/fallback happen from kerbros to NTLM. Per Apache documentation, we need another nil doc
-
We may have to pass in a set of target preferred auth schemes to the request.
RequestConfig config = RequestConfig.custom().setTargetPreferredAuthSchemes(Arrays.asList(AuthSchemes.NTLM)).build();
Unfortunately, I am still learning clojure and do not know how to make these changes but if someone can provide a fix, I will be willing to test it out.