Open
Bug 383312
Opened 18 years ago
Updated 2 years ago
HTTP-Negotiate doesn't work with round-robin DNS
Categories
(Core :: Networking, defect, P5)
Tracking
()
NEW
People
(Reporter: simon, Unassigned)
Details
(Whiteboard: [ntlm][necko-would-take])
This is a bug in extensions/auth/nsHttpNegotiateAuth.cpp
When used against a site with a round-robin DNS, and a GSSAPI library which canonicalises hostnames (such as MIT Kerberos), the HTTP-Negotiate code will fail to work.
Take a server SERVICE, which is a cname for HOST-A and HOST-B. When the HTTP library connects to SERVICE, it does a DNS lookup, gets HOST-A returned, and so opens it's connection to HOST-A. When that service then requests Negotiate authentication, the Negotiate library is started and asks the GSSAPI layer to create a security context with SERVICE. If the GSSAPI layer uses canonicalisation, it then asks the DNS to canonicalise SERVICE, and gets HOST-B back as the hostname to use, due to the round-robin. So, you end up with a connection to HOST-A, but using HOST-B's GSSAPI identity. Needless to say, this rarely works.
The fix for this is to know whether the GSSAPI is going to canonicalise or not - which is probably yet-another-preference, as there's no way of telling this externally. Then, when we are using a canonicalising GSSAPI library, use the name of the current connection endpoint, rather than the service name from the uri when calling into GSSAPI.
Is it possible to get the name of the endpoint out of the current nsIHttpChannel API?
Comment 1•17 years ago
|
||
IE appears to suffer from this affliction also and MS have released a hotfix for it http://support.microsoft.com/kb/911149 which I found from here http://blogs.msdn.com/saurabh_singh/archive/2007/01/29/kerberos-troubleshooting-from-iis-perspective.aspx
Comment 2•9 years ago
|
||
SSPI does not canonicalize the hostname for the exact reason you have described. I'd advise you to turn that off too for MIT Kerberos and it will work. Set in krb5.conf rdns to false.
Updated•9 years ago
|
Whiteboard: [ntlm][necko-would-take]
Comment 3•7 years ago
|
||
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P5
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•