JDP
JDP

Reputation: 56

kinit: Failed to store credentials: Bad format in credentials cache (filename: /tmp/krb5cc_651) while getting initial credentials

I have been trying to do kinit from client machine to KDC server to authenticate client kinit -kt host.keytab -p host/[email protected]

but I am getting below error

kinit: Failed to store credentials: Bad format in credentials cache (filename: /tmp/krb5cc_651) while getting initial credentials

I have checked permission /tmp dir. I do have write permission. the same kinit command works on the machine where KDC is installed. both machines are in public domain

krb5.conf

dns_lookup_realm = false
   default_realm = REALM.COM
#   default_ccache_name = KEYRING:persistent:%{uid}
   rdns = false
   kdc_timesync = 1
   ccache_type = 4
   forwardable = true
   proxiable = true
   preauth = false
   udp_preference_limit = 1

Please help me. what is going wrong?? (I have changed realm name and domain name here)

Upvotes: 0

Views: 9856

Answers (1)

JDP
JDP

Reputation: 56

it was OS (openVOS stratus machine) specific which is returning end of file while trying to read cache file very first time. actually, the cache file would not have anything very first time in the cache file. So I have to take care of the same in Kerberos source code.

Upvotes: 1

Related Questions