pegasy / python-ntlm

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

Allow Authentication with empty domain. #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to login with 'user@domain.com' (required for hosted exchange)
2. Initiate connection

Received Traceback:

  File "/home/red15/code/pyex/local/lib/python2.7/site-packages/ntlm/HTTPNtlmAuthHandler.py", line 72, in retry_using_http_NTLM_auth
    UserName = user_parts[1]
IndexError: list index out of range

What version of the product are you using? On what operating system?
(pip install ntlm) date June 12 2014

Please provide any additional information below.

It worked when I added following patch in HTTPNtlmAuthHandler.py

Original issue reported on code.google.com by red15...@gmail.com on 12 Jun 2014 at 6:40

Attachments:

GoogleCodeExporter commented 9 years ago
Keep in mind the patch is very rough work but should communicate my intention 
quite well.

A grep also showed me there is some code that repeats itself here, maybe it's 
time to do a little bit of refactoring. I would gladly help out if you accept 
patches.

Original comment by red15...@gmail.com on 12 Jun 2014 at 6:45

Attachments:

GoogleCodeExporter commented 9 years ago
Issue 39 has been merged into this issue.

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