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 tadas.da...@gmail.com on 2 Oct 2013 at 1:52
Original issue reported on code.google.com by
tadas.da...@gmail.com
on 2 Oct 2013 at 1:52Attachments: