Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jborean93 committed Apr 28, 2023
1 parent 17295d9 commit 2f32a2d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions tests/test_auth_dce.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,29 +72,29 @@ def _ntlm_exchange(
assert not client.complete
assert not server.complete

if client.protocol == "negotiate":
authentication = client.step(challenge)
assert authentication
assert not client.complete
assert not server.complete
authentication = client.step(challenge)
assert authentication

mech_list = server.step(authentication)
assert mech_list
assert not client.complete
assert server.complete
# If it's being wrapped by SPNEGO then an extra msg is expected
if authentication.startswith(b"NTLMSSP\x00"):
assert client.complete
assert not server.complete

final = client.step(mech_list)
final = server.step(authentication)
assert not final
assert client.complete
assert server.complete

else:
authentication = client.step(challenge)
assert authentication
assert client.complete
assert not client.complete
assert not server.complete

final = server.step(authentication)
mech_list = server.step(authentication)
assert mech_list
assert not client.complete
assert server.complete

final = client.step(mech_list)
assert not final
assert client.complete
assert server.complete
Expand Down

0 comments on commit 2f32a2d

Please sign in to comment.