Legrandin / PyAuthenNTLM2

PyAuthenNTLM2 is an authentication module for Apache. It validates a user by means of the NTLM protocol and a separate Domain Controller (or Active Directory server).
Other
57 stars 42 forks source link

Intermittent 401 Authorization required error #16

Closed zenmedia closed 10 years ago

zenmedia commented 10 years ago

When using PyAuthenNTLM2 master branch, we have a web app which utilises javascript post requests fairly heavily.

If we hit the site normally and trigger the ajax call shortly afterwards I get a log message [Tue Dec 17 15:28:14 2013] [notice] [client 127.0.0.1] PYNTLM: User Joe.Bloggs/TESTDOMAIN has been authenticated to access URI /search, referer: http://broken.site.domain/

If I leave a short period of time before I trigger any ajax calls, the above message is added to the log in first instance, but I get prompted for a Basic Authentication box which wont go away.

This happens in all web browsers.

Can anyone shine any light on this?

Thanks

zenmedia commented 10 years ago

After raising the log method there is a new message of .. Spurious authentic ation request on connection 0x1.

and

[Tue Dec 17 15:43:33 2013] [info] [client 127.0.0.1] Unexpected NTLM message Type 3 in new connection for URI /search, referer: http://broken.site.domain/

zenmedia commented 10 years ago

Found method to resolve issue in #12

akovacs123 commented 8 years ago

I have absolutely the same problem. I auth user vith PyAuthNTLM2 successfully. However, I have a flash player in my website calling HTTP API calls using POSTs. An auth Window pops up several times (each every POST!), so I have to reauthenticate. I wonder if anyone knows a solution.