Closed Bug 152481 Opened 22 years ago Closed 22 years ago

HTTP Authentication doesn't work when typed in request line

Categories

(Core :: Networking: HTTP, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 23679

People

(Reporter: safarishane, Assigned: darin.moz)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.0) Gecko/20020530
BuildID:    2002053012

Typing http://user:pass@somewhere.com should get you logged into IIS servers
requiring basic authentication.  And it does with other browsers.  
Also, when going to a page that requires authentication, no dialog ever comes up
to let you type it in.  Your immeditaly presented with the 401, instead of the
agent resending the request after gather the appropriate authentication information.

Reproducible: Always
Steps to Reproduce:
1.Find a server that needs authentication (not necessarily SSL)
2.Notice you can login just fine with IE
3.Find out that you can't with mozilla

Actual Results:  http 401

Expected Results:  200
-> http
Assignee: new-network-bugs → darin
Component: Networking → Networking: HTTP
QA Contact: benc → tever
benc, tever: can you reproduce this in-house?  thx!!
works for me with apache server

working on setting up an IIS server with basic auth
hmmm...  you may need to try it with a domain reference in the http request as 
well.  The servers I tried with all require domain login, and work fine in IE 
but not mozilla.  (of course, this means iis)
ok I will look into that, using an internal IIS server I get the message:

"HTTP Error 401

401.2 Unauthorized: Logon Failed due to server configuration

This error indicates that the credentials passed to the server do not match the
credentials required to log on to the server. This is usually caused by not
sending the proper WWW-Authenticate header field."

works fine with IE.  Will attach a packet trace shortly.





Status: UNCONFIRMED → NEW
Ever confirmed: true
Tever: can you add the login/passwd info here to the internal server so that we
could debug this? thx.
http://appman.nscp.aoltw.net/test

user : qaguest
pass : qaguest

ok, it appears as though the server was not configured for basic authentication. 
According to the server owner, there are 3 choices in the IIS setup for 
authentication methods - 1) allow anonymous  2) basic  3) win nt challenger.  
Basic auth has since been applied and now this works for me.  NS 4.79 also did 
not work until basic was applied.

I tested using the http://username:password@www.anyserver.com format on winNT4, 
linux rh6, and mac osX and they are all working.   Server: Microsoft-IIS/4.0

Safari, do you know if the server you are using is set up for basic auth?
The server is setup for integrated windows authentication.  I guess I should be 
reporting this bug to microsoft ie instead of you guys then, huh?  Looks like 
your right, there wrong.
Mozilla doesn't support NTLM at the moment.

dupe of bug 23679


*** This bug has been marked as a duplicate of 23679 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
verified duplicate
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.