Create MIT Kerberos keytab file
terje@hellstorm:~/private$ ktutil
ktutil: addent -password -p ciadm@CERN.CH -k 1 -e rc4-hmac
Password for ciadm@CERN.CH:
ktutil: addent -password -p ciadm@CERN.CH -k 1 -e aes256-cts
Password for ciadm@CERN.CH:
ktutil: wkt ciadm.keytab
ktutil: quit
Init kerberos + afs ticket using keytab file
kinit ciadm@CERN.CH -k -t ~/private/ciadm.keytab
aklog
Merge two (or more) keytabs:
ktutil: read_kt tanderse.keytab
ktutil: read_kt ciadm.keytab
ktutil: write_kt terje.keytab
ktutil: quit
List the keys in a keytab:
terje@hellstorm:~/private$ klist -k terje.keytab
Keytab name: FILE:terje.keytab
KVNO Principal
---- --------------------------------------------------------------------------
1 tanderse@CERN.CH
1 tanderse@CERN.CH
1 ciadm@CERN.CH
1 ciadm@CERN.CH