jborean93 / smbprotocol

Python SMBv2 and v3 Client
MIT License
316 stars 73 forks source link

Allow initial token to be set for NTLM #217

Closed maciejwie closed 1 year ago

maciejwie commented 1 year ago

When using NTLM authentication, the in_token passed to the spnego context.step() method is always None. However, this is the only mechanism which allows setting SMB negotiation flags.

Add optional initial_token parameter to be used when auth_method is 'ntlm' which allows this configuration to flow to spnego.

Addresses #216

maciejwie commented 1 year ago

This is superseded by https://github.com/jborean93/pyspnego/pull/65