Choix
Choix

Reputation: 575

Klist error: Bad format in credentials cache

I am seeing the following error when inspecting a newly created keytab:

[rxie@cedgedev02 ~]$ klist rxie.keytab klist: Bad format in credentials cache (filename: rxie.keytab)

[rxie@cedgedev02 ~]$ kinit -kt rxie.keytab kinit: Cannot determine realm for host (principal host/cedgedev02.company.com@)

Note I replaced the company's name here.

The keytab was created with a customized python file which wraps the actual ktutil commands below:

addent -password -p [email protected] -k 1 -e rc4-hmac
addent -password -p [email protected] -k 1 -e aes256-cts

Can any one share your thought on where/what is missing here? Thank you very much.

Upvotes: 1

Views: 10198

Answers (1)

Choix
Choix

Reputation: 575

The working command is:

kinit -kt rxie.keytab rxie

Upvotes: 2

Related Questions