Skip to content

Incorrect DomainNameBufferOffset/WorkstationBufferOffset values when DomainName/Workstation empty #42

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions