Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Invalid KDC administrator credentials. Facing error while enabling kerberos

Invalid KDC administrator credentials. Facing error while enabling kerberos

Contributor

I am facing mentioned error while trying to enable kerberos in Ubuntu setup.

Invalid KDC administrator credentials. Please enter admin principal and password.

Although i have known admin credentials still it is giving me error.

any kind of help is appreciated.

@kkulkarni

@Jay SenSharma

4 REPLIES 4

Re: Invalid KDC administrator credentials. Facing error while enabling kerberos

Super Mentor

@hardik desai

- Are you entering "ambari admin" credentials in a place where you are supposed to enter the "kadmin" credentials?

- Can you please share the screenshot of the error that you are getting so that we will know exactly when you are getting this error message.

- Ambari also allows us to permanently store the "kadmin" credentials as described in the following article, so that you do not need to enter the kadmin credentials : https://community.hortonworks.com/articles/42927/adding-kdc-administrator-credentials-to-the-ambari....

Re: Invalid KDC administrator credentials. Facing error while enabling kerberos

Contributor

Jay SenSharma thanks for the respond...

kindly find the atatched file for reference.error-kerb.png

Here i have tried entering kadmin credentials , which i have also stored as per the article given by you.

still it is giving the same error and not taking the kadmin credentials even though it is properly checked.

plz help if possible.

Re: Invalid KDC administrator credentials. Facing error while enabling kerberos

Mentor

@Jay SenSharma

The login should be admin/root@REALM or admin/admin@REALM and the password you used when creating the KDC database.

The exact value should be in your

/var/kerberos/krb5kdc/kadm5.acl 

an example above form my centOS the location could be different in Ubuntu

*/admin@TEST.COM      *

So with the above value my login would be either

admin/admin@TEST.COM  or root/admin@TEST.COM or whatever you chose in the begining

The password you entered during the creation of the database see below extract is the one you use in the above scenario

# kdb5_util create -s
Loading random data
Initializing database '/var/kerberos/krb5kdc/principal' for realm 'TEST.COM',
master key name 'K/M@TEST.COM'
You will be prompted for the database Master Password.
It is important that you NOT FORGET this password.
Enter KDC database master key:
Re-enter KDC database master key to verify:

Or whatever you chose I hope you keep the password safely !!

Highlighted

Re: Invalid KDC administrator credentials. Facing error while enabling kerberos

New Contributor

I did face the same problem in HDP 2.3 cluster with open JDK 1.6

I tried the above solution but it didn't work for me.

I then decided to try with HDP 2.4 with open JDK 1.7, Now kerberos setup is successful.