hadoophivekerberoshuekeytab

Retrieve password from kerberos keytab file


I am using hadoop with kerberos keytab file name userid.keytab for a long while. But now i m not aware the password. Is it anyway to get password from the keytab file.


Solution

  • No, you can't. The only thing you can get from a keytab file is the principal name:

    $ ktutil 
    ktutil:  read_kt test.wtk 
    ktutil:  list 
    slot KVNO Principal
    ---- ---- ---------------------------------------------------------------------
       1    1                hadoop_app@BLALBLABLA.LOC
    

    Keytab contains pairs of principal and encrypted keys (which are derived from the Kerberos password), no way to get back the password from these data.