ktutil -k bpm855.keytab list
but, on Red Hat Linux, this doesn't seem to work quite as well - I need to use several commands: -
ktutil
ktutil: rkt bpm855.keytab
ktutil: list
slot KVNO Principal
---- ---- ---------------------------------------------------------------------
1 3 HTTP/bpm855.uk.ibm.com@UK
ktutil: quit
ktutil: rkt bpm855.keytab
ktutil: list
slot KVNO Principal
---- ---- ---------------------------------------------------------------------
1 3 HTTP/bpm855.uk.ibm.com@UK
ktutil: quit
Thankfully, the internet came to the rescue: -
Create a shell macro: -
rkt() { echo -e "read_kt $1\nlist\nquit" | ktutil | grep -v "^ktutil:";}
Read the key tab: -
rkt bpm855.keytab
ktutil: read_kt bpm855.keytab
slot KVNO Principal
---- ---- ---------------------------------------------------------------------
1 3 HTTP/bpm855.uk.ibm.com@UK
which is nice.
Read the key tab: -
rkt bpm855.keytab
ktutil: read_kt bpm855.keytab
slot KVNO Principal
---- ---- ---------------------------------------------------------------------
1 3 HTTP/bpm855.uk.ibm.com@UK
which is nice.
Thanks Internet, I owe you :-)
No comments:
Post a Comment