Kerberos KDC (key distribution center)
Kerberos Server Configuration
Setup
Slackware - install my kerberos package
Follow these directions
1):
Edit /etc/krb5.conf
Edit /var/kerberos/krd5kdc/kdc.conf
Replace EXAMPLE.COM with your realm
If you're using the kdc.conf that came with Red Hat, you'll want to change the following two lines. Otherwise you'll have problems when storing keys in keytabs, etc. These are the values from a stock MIT kdc.conf. See the bug I filed with Red Hat about this.
Run /usr/kerberos/sbin/kdb5_util create -s
Creates the Kerberos database
The password requested here is the key to securing your Kerberos database, and you'll almost never need to enter it again, so make it something huge and ugly and store it somewhere secure.
Edit /var/kerberos/krb5kdc/kadm5.acl
Run /usr/kerberos/sbin/kadmin.local -q “addprinc username/admin”
Configure kadmind (primary only) and krb5kdc (all KDCs) to be started at boot time
Red Hat's kadmin init script does this automatically, but on other systems you'll need to create a keytab for kadmind with a couple of principals: /usr/kerberos/sbin/kadmin.local -q “ktadd -k /var/kerberos/krb5kdc/kadm5.keytab kadmin/admin kadmin/changepw” See the kadmind man page for more details. Thanks to Joshua Schmidlkofer for pointing this out.
Create additional username and username/admin principals as necessary using kadmin
troubleshooting
on fedora, for pam, use
authconfig --enablekrb5 --update
to enable krb
Testing
Run kinit username
where username is a principal you've already created. Then run klist
- you should now have a kerberos ticket cached.
Info