pegasy / python-ntlm

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

NTLM authentication fails when connecting from a windows machine #33

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Client is running on a window 7 machine (Or an xp machine) opening a json 
url which should return a json string
2. have an apache tomcat which uses ntlm authentication running
   on a windows xp machine 
3. i am trying the Basic example usage

What is the expected output? a python string

What do you see instead?
File 
"D:\quartz\WINSLA~1\WIN32-~4\build\ext\noarch\lib\python2.6\ntlm\HTTPNtlmAuthHan
dler.py", line 96, in http_error_401
  File "D:\quartz\WINSLA~1\WIN32-~4\build\ext\noarch\lib\python2.6\ntlm\HTTPNtlmAuthHandler.py", line 35, in http_error_authentication_required
  File "D:\quartz\WINSLA~1\WIN32-~4\build\ext\noarch\lib\python2.6\ntlm\HTTPNtlmAuthHandler.py", line 69, in retry_using_http_NTLM_auth
  File "D:\quartz\WINSLA~1\WIN32-~4\build\ext\noarch\lib\python2.6\ntlm\ntlm.py", line 219, in parse_NTLM_CHALLENGE_MESSAGE
error: unpack requires a string argument of length 4

What version of the product are you using? On what operating system?

i don't know the exact version of python ntlm but i m running python version 2.6

i have tried also the extended usage, but it fails with the same problem

could anyone assist?

w/kindest regards
 marco

Original issue reported on code.google.com by mmistr...@gmail.com on 23 Aug 2012 at 3:28

GoogleCodeExporter commented 9 years ago
This sounds like a duplicate of issue 28, which has been patched.  Please 
download the latest revision and let me know it you are still seeing the 
problem.

Original comment by samw...@gmail.com on 19 Feb 2013 at 1:11

GoogleCodeExporter commented 9 years ago
Hi

 might be a lame comment, but cud u make sure that you are not connecting
from XP to Win7?

nltm auth has changed between XP and Win7

rgds

 marco

Original comment by mmistr...@gmail.com on 19 Feb 2013 at 8:41