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

Set NTLM Negotiate Version field #65

Merged
merged 1 commit into from
Jun 14, 2023
Merged

Set NTLM Negotiate Version field #65

merged 1 commit into from
Jun 14, 2023

Conversation

jborean93
Copy link
Owner

Always set the NTLM Negotiate version flag and field when generating the message. This aligns the client behaviour to match with SSPI which also sets this value. It should improve compatibility with some NTLM servers which expect the version flag to be set in subsequent token exchanges.

Fixes: jborean93/smbprotocol#216

Always set the NTLM Negotiate version flag and field when generating the
message. This aligns the client behaviour to match with SSPI which also
sets this value. It should improve compatibility with some NTLM servers
which expect the version flag to be set in subsequent token exchanges.
@codecov
Copy link

codecov bot commented Jun 14, 2023

Codecov Report

Merging #65 (911445c) into main (c3db058) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main      #65   +/-   ##
=======================================
  Coverage   99.96%   99.96%           
=======================================
  Files          31       31           
  Lines        5387     5387           
=======================================
  Hits         5385     5385           
  Misses          2        2           
Flag Coverage Δ
99.96% <100.00%> (ø)
py3.10 99.96% <100.00%> (ø)
py3.11 99.96% <100.00%> (ø)
py3.7 99.96% <100.00%> (ø)
py3.8 99.96% <100.00%> (ø)
py3.9 99.96% <100.00%> (ø)
x64 99.96% <100.00%> (ø)
x86 95.80% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/spnego/_ntlm.py 100.00% <100.00%> (ø)
src/spnego/_version.py 100.00% <100.00%> (ø)

@jborean93 jborean93 merged commit 3c1d1a8 into main Jun 14, 2023
@jborean93 jborean93 deleted the ntlm-version branch June 14, 2023 04:22
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

Successfully merging this pull request may close these issues.

Passing initial token to spnego for ntlm auth
1 participant