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

Incorrect DomainNameBufferOffset/WorkstationBufferOffset values when DomainName/Workstation empty

Open GoogleCodeExporter opened this issue 10 years ago • 0 comments

In ntlm.py create_NTLM_NEGOTIATE_MESSAGE

WorkstationBufferOffset = BODY_LENGTH when Workstation is empty (len=0)
DomainNameBufferOffset = BODY_LENGTH+WorkstationBufferOffset when DomainName is 
empty

When Workstation or DomainName value is empty, their corresponding BufferOffset 
values should be 0. Otherwise, server can respond with BAD REQUEST status code 
(this happens all the time in my case with some third-party webservice).

Attached patch fixes this issue.

Original issue reported on code.google.com by [email protected] on 2 Oct 2013 at 1:52

Attachments:

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter