Closed Bug 211843 Opened 21 years ago Closed 16 years ago

while using a proxy (NTLM auth required), basic auth problems

Categories

(Core :: Networking: HTTP, defect, P2)

x86
Windows NT
defect

Tracking

()

RESOLVED DUPLICATE of bug 278885
Future

People

(Reporter: markybob, Unassigned)

References

Details

(Keywords: helpwanted, Whiteboard: [ntlm-auth][proxy])

Attachments

(1 file)

(deleted), application/zip
Details
User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.5a) Gecko/20030702 Mozilla Firebird/0.6 Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.5a) Gecko/20030702 Mozilla Firebird/0.6 while going through a proxy that requires authentication and visiting a site that uses basic auth, mozilla will get confused and start popping up prompts to authenticate with the proxy and then back again with the site over and over again. Reproducible: Always Steps to Reproduce: 1. setup proxy with auth 2. visit site with basic auth 3. Actual Results: mozilla will get confused and start popping up prompts to authenticate with the proxy and then back again with the site over and over again. Expected Results: granted access through the proxy and to the site without repeatedly prompting for username/pass proxy used in this case is ms proxy 2.0, but i doubt that matters
are you using NTLM auth on MS Proxy 2.0 ? can you attach a log ? See instructions here: http://www.mozilla.org/projects/netlib/http/http-debugging.html
Attached file log... (deleted) —
not really a patch but i couldnt otherwise upload it..sorry. and yes, NTLM with MS Proxy 2
Attachment #127132 - Attachment is patch: false
Attachment #127132 - Attachment mime type: text/plain → application/zip
couldn't find similar bugs (i.e. dupes), marking NEW since it has a log. Does the basic auth reset for internal sites or every public site too ?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [ntlm-auth][proxy]
unfortunately i dont have any internal sites (nor access to our internal servers) to test this on.
i see the bug from the log file... i'll try to get this fixed for moz 1.5.
Status: NEW → ASSIGNED
Priority: -- → P1
Summary: while using a proxy (auth required), mozilla gets confused when visiting a site that uses basic auth (apache/htaccess) → while using a proxy (NTLM auth required), mozilla gets confused when visiting a site that uses basic auth (apache/htaccess)
Target Milestone: --- → mozilla1.5alpha
Target Milestone: mozilla1.5alpha → mozilla1.5beta
hmm... ok, i looked over the log file some more, and here's what's going on: the server is closing the socket connection before we have completed the NTLM handshake. we detect the closure and try on a new socket, but we don't restart the NTLM handshake properly. as a result, the NTLM handshake seems to fail, and when login fails, we clear the login credentials. we need to restart the NTLM handshake when we hit this condition. but, that said... this is really a bug in your proxy server because it shouldn't be closing the connection prematurely like this. if possible you should try to get it upgraded because even if i fix this bug in mozilla, you'll still get poor performance from your proxy server.
Severity: critical → major
Priority: P1 → P2
Blocks: 215582
Blocks: 215888
My NTLM proxy server is down, but I'm pretty sure that I've tested this combination (proxy auth w/ NTLM to web w/ basic auth). I'm finding out the hard way from the buster worm that Microsoft does not think much of supporting Proxy 2.0 anymore, especially since it is typically run on Windows NT 4 Server. Darin, if you want me to look at this further, let me know, b/c I have to budget time after work to look at this, but I'd be happy to w/ a little advanced warning.
thanks ben, but at the moment i have all the info i need from the HTTP log file. i just have to figure out the best way to code up the solution ;-)
No longer blocks: 215582
Target Milestone: mozilla1.5beta → mozilla1.6alpha
*** Bug 220037 has been marked as a duplicate of this bug. ***
Target Milestone: mozilla1.6alpha → mozilla1.6beta
Target Milestone: mozilla1.6beta → mozilla1.7alpha
punt
Target Milestone: mozilla1.7alpha → mozilla1.7beta
Target Milestone: mozilla1.7beta → mozilla1.8alpha
Blocks: 250014
Keywords: helpwanted
Target Milestone: mozilla1.8alpha1 → Future
Summary: while using a proxy (NTLM auth required), mozilla gets confused when visiting a site that uses basic auth (apache/htaccess) → while using a proxy (NTLM auth required), basic auth problems
btw: In Bug 278885 a potential patch was posted. Maybe someone wants to take a look at it?
Assignee: darin → nobody
Status: ASSIGNED → NEW
reporter's address is dead. opting to dup to bug 278885. feel free to => incomplete or reopen if you disagree
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: