0

I can't use the kadmin.local interface I just get the error Authenticating as principal root/[email protected] with password. kadmin.local: Can not fetch master key (error: No such file or directory). while initializing kadmin.local interface

This occured after I used addprinc root and addprinc root/admin and used the command kinit. Which returns the error kinit: Cannot contact any KDC for realm 'deadpool.cavill.org.uk' while getting initial credentials.

I checked my config and that looks fine. I would check the krb5kdc error log but there isn't one.

3 Answers 3

0

I solved this issue by deleting he contents of /etc/krb5kdc and then using sudo krb5_newrealm to recreate the realm. After I added the principals again and used kinit it worked fine.

1
  • 1
    I had the same issue on Centos, and it was resolved by deleting everything as follows: rm -rf /var/kerberos/krb5kdc/*
    – Leo
    Nov 17, 2016 at 15:45
0

Those solution are not good imho

If give the message "can't find master key"

need that master key is still not created

To re-create or create use

kdb5_util stash
0
kadmin.local: Can not fetch master key (error: No such file or directory). while
initializing kadmin.local interface

I fixed this by fulling initializing my kerberos database:

kdb5_util create -s

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .