Skip to content

Conversation

@stamparm
Copy link

@stamparm stamparm commented Aug 6, 2020

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

`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
@cnotin
Copy link

cnotin commented Sep 4, 2020

I confirm it's necessary!

@cnotin
Copy link

cnotin commented Sep 4, 2020

FYI this was introduced by 5c8ccbd
Which was because:

The ntml.create_ calls return a byte string

But this isn't what I observe in debugger, due to:

return msg1.decode()

return msg3.decode()

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.

2 participants