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

fix: propagate the auth identity when fallbacking to NTLM #192

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

irvingoujAtDevolution
Copy link
Contributor

When the first time InitializeSercurityContext is called for negotiate, the variable self.auth_identity is always None, but latter used when switching to NTLM or PKU2U, which of course will not work since it is None. Fixed the problem so Negotiate could properly fallback to NTLM with authentication information from the builder.

Copy link
Contributor

@pauldumais pauldumais left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it and it works for me.

Copy link
Member

@CBenoit CBenoit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a genuine overlook. Thank you!

@CBenoit CBenoit merged commit ea6cea8 into master Dec 18, 2023
40 checks passed
@CBenoit CBenoit deleted the Fix-NTLM-fall-back-failure branch December 18, 2023 16:40
@CBenoit CBenoit changed the title Fix Negotiate failure to fallback to NTLM fix: propagate the auth identity when fallbacking to NTLM Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants