Server not found in Kerberos database
2006-02-07 18:25:26 GMT
Hi all,
I have a Windows 2000 Server running as a KDC and an Apache Server (2.0.55) in a Solaris 2.9. I installed the mod_auth_kerb module in Apache and followed the steps in http://modauthkerb.sourceforgenet/ I searched a lot the web and these archives but didn’t find the answer to my problem.
My krb5.conf:
[logging]
default = FILE:/var/krb5/kdc.log
kdc = FILE:/var/krb5/kdc.log
admin_server = FILE:/var/log/kadmin.log
[libdefaults]
default_realm = EFTESTE.COM
ticket_lifetime = 24000
[realms]
EFTESTE.COM = {
kdc = tarzan.efteste.com:88
admin_server = tarzan.efteste.com:749
default_domain = tarzan.efteste.com
}
[domain_realm]
efteste.com = EFTESTE.COM
efteste.com = EFTESTE.COM
The Windows 2000 Server is tarzan.efteste.com and the Apache Server is in solero.intranet.company.pt. I can’t have the Win 2000 Server and solero in the same domain, so I had to put in /etc/hosts the binding to solero.efteste.com and so I did it in Win 2000 Server to be able to reach solero.intranet.company.pt.
Part of my httpd.conf:
<Directory "/usr/local/apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
AuthType Kerberos
AuthName solero
KrbAuthRealms EFTESTE.COM
KrbServiceName HTTP
Krb5Keytab /etc/krb5/solero.keytab
KrbMethodNegotiate on
KrbMethodK5Passwd on
require valid-user
</Directory>
The account I use in the AD of Win 2000 Server is solerokrb, so if I do a kinit solerokrb it works and I can see:
bash-2.05# klist -e
Ticket cache: FILE:/tmp/krb5cc_0
Default principal: solerokrb <at> EFTESTE.COM
Valid starting Expires Service principal
02/07/06 18:10:13 02/08/06 00:50:13 krbtgt/EFTESTE.COM <at> EFTESTE.COM
Etype (skey, tkt): ArcFour with HMAC/md5, ArcFour with HMAC/md5
Kerberos 4 ticket cache: /tmp/tkt0
klist: You have no tickets cached
When I try to access http://solero.efteste.com from IE in the Windows 2000 Server it asks for username and password although I configured the browser in every aspect that it was supposed to be done. I don’t know exactly what I should write in the username and password, is it the account ‘solerokrb’? Anyway, when it asks for username and password the log in the Apache is:
[Tue Feb 07 18:18:33 2006] [debug] src/mod_auth_kerb.c(1322): [client 192.168.42.32] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
[Tue Feb 07 18:18:39 2006] [debug] src/mod_auth_kerb.c(1322): [client 192.168.42.32] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
[Tue Feb 07 18:18:40 2006] [error] [client 192.168.42.32] failed to verify krb5 credentials: Server not found in Kerberos database
[Tue Feb 07 18:18:40 2006] [debug] src/mod_auth_kerb.c(1322): [client 192.168.42.32] kerb_authenticate_user entered with user (NULL) and auth_type Kerberos
[Tue Feb 07 18:18:40 2006] [error] [client 192.168.42.32] failed to verify krb5 credentials: Server not found in Kerberos database
[Tue Feb 07 18:18:40 2006] [notice] child pid 17024 exit signal Segmentation fault (11)
[Tue Feb 07 18:18:40 2006] [notice] child pid 17023 exit signal Segmentation fault (11)
Anybody have a clue of what the problem is?
Thanks,
Henrique Craveiro
RSS Feed