pegasy / python-ntlm

Automatically exported from code.google.com/p/python-ntlm
0 stars 0 forks source link

found a mistake in your code #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
in the function create_NTLM_NEGOTIATE_MESSAGE of ntml.py, you split the user 
into parts and then take the first part as the domain.

eg:

DOMAIN\username is split into DOMAIN and username.

However, when the user string has no domain (eg on my Mac), there is only 1 
part which contains the user name.

eg

username splits into username

so username is taken as the domain name, which is not correct ;-)

Original issue reported on code.google.com by sam.decr...@iminds.be on 7 Aug 2013 at 1:45

GoogleCodeExporter commented 9 years ago
Hi Sam,

Seems I ran into a similar issue as you did, however due the somewhat vague 
title of your issue I made another issue. I have provided a patch in this issue 
which should help you forward in case you were stuck with this issue.

https://code.google.com/p/python-ntlm/issues/detail?id=44

Original comment by red15...@gmail.com on 16 Jun 2014 at 11:09

GoogleCodeExporter commented 9 years ago
Marking it as a dupplicate of #44 since it is best explained and provide a 
patch.

Original comment by deron...@gmail.com on 24 Oct 2014 at 11:49