Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTLM Authentication #1

Open
yogimogi opened this issue May 23, 2019 · 0 comments
Open

NTLM Authentication #1

yogimogi opened this issue May 23, 2019 · 0 comments

Comments

@yogimogi
Copy link

yogimogi commented May 23, 2019

Hello,
This is not really an issue with this library as such, we just wanted to check how can this code be modified so that it uses NTLM authentication underneath.

We have set up a SQUID proxy server with Kerberos, but apparently, it always falls back to NTLM authentication when we route traffic to internet through it via a web browser. We concluded that looking at SQUID log files. Though we can potentially fix configuration issue, assuming there is one, we also wanted to make sure, we are able to write code for a proxy which solely uses NTLM authentication.

We tried modifying

Registry<AuthSchemeProvider> authSchemeRegistry = 
        		RegistryBuilder.<AuthSchemeProvider>create().register(AuthSchemes.SPNEGO, new SPNegoSchemeFactory(true)).build();

TO

Registry<AuthSchemeProvider> authSchemeRegistry = 
        		RegistryBuilder.<AuthSchemeProvider>create().register(AuthSchemes.NTLM, new NTLMSchemeFactory()).build();

but we get this error
WARNING: Authentication scheme Negotiate not supported

We tried a lot of different things, but code always tried Kerberos authentication and then it fails with 407 Proxy Authentication needed error.

regards, Yogesh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant