Monday, 3 December 2018

Kerberos and Red Hat Enterprise Linux - Now friends

Following a number of previous posts, including: -

I was looking for, and failing to find, utilities such as ktutil and ktlist on my RHEL 7.6 box.

Of course, I was holding it wrong.

I was missing the Kerberos (KRB5) tooling: -

yum install -y  krb5-libs
yum install -y  krb5-server
yum install -y  krb5-workstation


specifically the last of the three.

Thanks to this: -


for pointing out the error of my ways.

Now I have this: -

ls -al `which ktutil`

-rwxr-xr-x 1 root root 23784 Aug  1 20:34 /bin/ktutil

so I can do this: -

rkt() { echo -e "read_kt $1\nlist\nquit" | ktutil | grep -v "^ktutil:";}

rkt /mnt/was.uk.ibm.com.keytab 

ktutil:  read_kt /mnt/was.uk.ibm.com.keytab
slot KVNO Principal
---- ---- ---------------------------------------------------------------------
   1    4                   HTTP/was.uk.ibm.com@UK

No comments:

GoLang - weirdness with "panic: assignment to entry in nil map"

I kept seeing this: - --- FAIL: TestClient (0.00s) panic: assignment to entry in nil map [recovered] panic: assignment to entry in nil ...