Skip to content

NTLM authentication is not working. Possibly missing set TargetPreffredAuthSchemes #329

Closed
@abhigogna

Description

@abhigogna

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:

  1. 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

  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions