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

Do not handle NTLM authentication requests #43

Merged
merged 1 commit into from Mar 9, 2018

Conversation

phaas
Copy link
Contributor

@phaas phaas commented Aug 19, 2015

Avoid handling NTLM authentication requests in the SpnegoAuthenticationProcessingFilter, since the payload is not a valid Spnego token.

These tokens are currently treated as a SpNego token and passed to the GSSAPI, which throws an exception GSSException: Defective token detected (Mechanism level: GSSHeader did not find the right tag).

Depending on the error handler, IE may think that it successfully authenticated via NTLM and/or continue to sent NTLM tokens on subsequent requests.
IE also likes to preemtively send NTLM tokens when posting forms (i.e. instead of posting a FORM with the actual data, it sends a zero-byte POST with an NTLM header, expects the server to issue an NTLM challenge and will ultimately retry the POST once it's confident that it's authorized.
This breaks badly when servers don't actually implement NTLM authentication.

…onProcessingFilter, since the payload is not a valid Spnego token.
@rwinch rwinch self-assigned this Mar 9, 2018
@rwinch rwinch added this to the 1.0.2 milestone Mar 9, 2018
@rwinch rwinch merged commit 20ff54a into spring-projects:master Mar 9, 2018
@rwinch
Copy link
Member

rwinch commented Mar 9, 2018

Thanks for the PR! This is now merged into master

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

Successfully merging this pull request may close these issues.

None yet

2 participants