Answer the question
In order to leave comments, you need to log in
WWW-Authenticate: Negotiate (for Kerberos SSO) not working in Firefox?
In connection with the plans to transfer everything to SSO in general, I am gradually debugging issues related to this. An important issue is working with corporate http(s) resources.
The test configuration is as follows:
on both Gentoo Linux machines, world rebuilt with USE="kerberos"
, Kerberos library - mit-krb5-1.9.4-r1
web server - Apache 2.2.23, mod_auth_kerb 5.3
browser - Firefox 10.0.5 (ESR)
KDC - MIT, on the same machine as the web server.
The user successfully receives the TGT using kinit on both machines. Everywhere kadmin works correctly. Other services that use Kerberos (for example, ssh, nfs4) work, while on the client side, their service tickets appear in the ticket cache, as expected.
(all domain names below are fictitious)
.htaccess is the following:
AuthType Kerberos
AuthName "Kerberos Login"
KrbAuthRealms MYDOMAIN.SMTH.RU
require valid-user
KrbServiceName http
Krb5Keytab /etc/apache2/krb5.keytab
KrbMethodK5Passwd off
KrbSaveCredentials on
http://www.mydomain.smth.ru/, www.mydomain.smth.ru, mydomain.smth.ru, srv.mydomain.smth.ru
www.mydomain.smth.ru
, I had to add the service principal to the keytab exactly http/[email protected]
; apparently it's because of the www CNAME srv in the DNS zone. Answer the question
In order to leave comments, you need to log in
In the KDC logs, I found that the client is trying to get a ticket for HTTP/srv.mydomain.smth.ru, i.e. The CNAME of the host and the service name is HTTP. The server does not provide the client with information about which service to catch, well known is used, in this case HTTP.
I made such a principal, uploaded it to keytab, removed KrbServiceName http - everything worked.
Usually just adding smth.ru to network.negotiate-auth.trusted-uris is enough.
I don't change the rest of the settings.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question