Created on 01-22-2017 10:06 AM - edited 09-16-2022 03:55 AM
After I "Enable Kerberos" I execute kinit, it reminds me to input password. But i do not set password for it.
Created 01-22-2017 11:17 AM
Are you passing the keytab path to it?
Example:
Syntax: kinit -kt /PATH/TO/Keytab_file $PRINCIPAL_NAME Example: kinit -kt /etc/security/keytabs/hdfs.headless.keytab [email protected]
.
Created 01-22-2017 11:17 AM
Are you passing the keytab path to it?
Example:
Syntax: kinit -kt /PATH/TO/Keytab_file $PRINCIPAL_NAME Example: kinit -kt /etc/security/keytabs/hdfs.headless.keytab [email protected]
.
Created 01-22-2017 01:44 PM
Yes, I kinit -kt first, and then execute kadmin.local.
Created 01-23-2017 09:10 AM
My operation is:
[root@bigdata013 centos]# kinit -kt /etc/security/keytabs/hdfs.headless.keytab [email protected] [root@bigdata013 centos]# kinit [email protected] Password for [email protected]: kinit: Password incorrect while getting initial credentials
Created 01-23-2017 10:00 AM
Looks like your kinit was successful earlier when you run the command as it did not show any error. So i think the ticket was generated fine.
[root@bigdata013 centos]# kinit -kt /etc/security/keytabs/hdfs.headless.keytab [email protected]
After running the above command did you check the output of "klist" command to see if you got the kerberos ticket?
[root@bigdata013 centos]# klist
.
Example at my end:
# kinit -kt /etc/security/keytabs/hdfs.headless.keytab [email protected] # klist Ticket cache: FILE:/tmp/krb5cc_0 Default principal: [email protected] Valid starting Expires Service principal 01/23/17 10:00:20 01/23/17 10:00:50 krbtgt/[email protected] renew until 01/23/17 10:00:20
.
Created 01-23-2017 10:10 AM
Yes, I run the command success before, but it is not right when I run the command after I install LDAP.
Thank you, I will retry a minute.