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

Allow Authentication with empty domain.

Open GoogleCodeExporter opened this issue 10 years ago • 2 comments

What steps will reproduce the problem?
1. Attempt to login with '[email protected]' (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 [email protected] on 12 Jun 2014 at 6:40

Attachments:

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter

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 [email protected] on 12 Jun 2014 at 6:45

Attachments:

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter

Issue 39 has been merged into this issue.

Original comment by [email protected] on 24 Oct 2014 at 11:49

GoogleCodeExporter avatar Apr 07 '15 17:04 GoogleCodeExporter