Symptom
Kerberos authentication no longer works.
Products Affected
- Mac OS X Server 10.3 or later
Solution
There are normally three keys within the keytab file per kerberized service. If there are duplicate sets of keys, execute the following commands in Terminal. Commands are preceded by the number sign (#).
To examine the keytab file:
# sudo ktutil
At the ktutil prompt:
ktutil: read_kt /etc/krb5.keytab
ktutil: list
ktutil: exit
If duplicate keys exist or Kerberos authentication is no longer working, remove the keytab file with this command:
#sudo rm /etc/krb5.keytab
Then recreate the keytab file with this command:
#sudo sso_util configure -r KERB-REALM -a LDAP-ADMIN -p LDAP-ADMIN-PASSWORD all
The new keytab file should allow kerberized services to authenticate correctly.
Note: The "LDAP-ADMIN" mentioned above represents the user (or administrator) created on the master LDAP server in Server Assistant during initial server setup. This step may fail if the root user is used.