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.keytabwithout passing it tokinitcommand ? - If server hostname is
myhost.mydomainthen how to generateKerberosticket using different principal andkinitcommand without passing the principal? kinitcommand 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
