python-ntlm icon indicating copy to clipboard operation
python-ntlm copied to clipboard

Fix for Python3

Open stamparm opened this issue 5 years ago • 2 comments

create_NTLM_AUTHENTICATE_MESSAGE and create_NTLM_NEGOTIATE_MESSAGE return already "decoded" str value, while this same double-decode() attempt results with AttributeError: 'str' object has no attribute 'decode' in Python3

stamparm avatar Aug 06 '20 12:08 stamparm

I confirm it's necessary!

cnotin avatar Sep 04 '20 17:09 cnotin

FYI this was introduced by 5c8ccbdf49b083311a4ea07c0a8b200724110a59 Which was because:

The ntml.create_ calls return a byte string

But this isn't what I observe in debugger, due to: https://github.com/mullender/python-ntlm/blob/14e2243e05c8b671c6eae570d670672c9613e563/python30/ntlm/ntlm.py#L219 https://github.com/mullender/python-ntlm/blob/14e2243e05c8b671c6eae570d670672c9613e563/python30/ntlm/ntlm.py#L337

cnotin avatar Sep 04 '20 17:09 cnotin