How to generate kerberos ticket based on principal present in /etc/krb5.keytab without passing it to kinit command ?
Issue
- How to generate kerberos ticket based on principal present in
/etc/krb5.keytab
without passing it tokinit
command ? - If server hostname is
myhost.mydomain
then how to generateKerberos
ticket using different principal andkinit
command without passing the principal? kinit
command is throwing following error.
# kinit -V -k -t /etc/krb5.keytab
Using default cache: /tmp/krb5cc_0
Using principal: host/myhost.mydomain@EXAMPLE
Using keytab: /etc/krb5.keytab
kinit: Keytab contains no suitable keys for host/myhost.mydomain@EXAMPLE while getting initial credentials
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Kerberos
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.