Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Need to know how to differentiate headless and service keytab.. any specific commands
Created 09-27-2019 05:20 AM
Was your query answered? If your question is answered then, Please make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Please revert back if you have any followup query in this thread. That way we can find the solution/answer that way other community users can get the benefit.
Created 09-29-2019 09:10 PM
Created on 08-19-2019 09:34 PM - edited 08-19-2019 09:38 PM
From Standard Kerberos perspective there is no command to differentiate between headless/service keytab.
However, we can differentiate between headless / service keytabs you can find the detailed discussion about it in the following thread:
https://community.cloudera.com/t5/Support-Questions/Headless-Keytab-Vs-User-Keytab-Vs-Service-Keytab...
Try running the following command on your keytab:
Headless keytab
Headless principals are not bound to a specific host or node, they have the syntax: - @EXAMPLE.COM
# klist -kte /etc/security/keytabs/hdfs.headless.keytab
Keytab name: FILE:/etc/security/keytabs/hdfs.headless.keytab
KVNO Timestamp Principal
---- ------------------- ------------------------------------------------------
2 08/11/2019 01:58:27 [email protected] (des-cbc-md5)
2 08/11/2019 01:58:27 [email protected] (aes256-cts-hmac-sha1-96)
2 08/11/2019 01:58:27 [email protected] (des3-cbc-sha1)
2 08/11/2019 01:58:27 [email protected] (arcfour-hmac)
2 08/11/2019 01:58:27 [email protected] (aes128-cts-hmac-sha1-96)
If it is truly a headless keytab then it will not have a principal specific to a Host.
Service keytab
Service principal is something that does not need to be a POSIX user,they are mostly applications that have own arrangement on how they run on the OS level and need to interact with the Kerberized cluster. Notice it's principal name has hostname included.
Example:
# klist -kte /etc/security/keytabs/nn.service.keytab
Keytab name: FILE:/etc/security/keytabs/nn.service.keytab
KVNO Timestamp Principal
---- ------------------- ------------------------------------------------------
2 08/11/2019 01:58:40 nn/[email protected] (des-cbc-md5)
2 08/11/2019 01:58:40 nn/[email protected] (aes256-cts-hmac-sha1-96)
2 08/11/2019 01:58:40 nn/[email protected] (des3-cbc-sha1)
2 08/11/2019 01:58:40 nn/[email protected] (arcfour-hmac)
2 08/11/2019 01:58:40 nn/[email protected] (aes128-cts-hmac-sha1-96)
.
Created 08-19-2019 09:42 PM
@irfangk1
You can find more details about headless / service principals/keytabs in the following doc:
https://docs.hortonworks.com/HDPDocuments/HDP3/HDP-3.1.0/authentication-with-kerberos/content/kerber...
Created 09-27-2019 05:20 AM
Was your query answered? If your question is answered then, Please make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Please revert back if you have any followup query in this thread. That way we can find the solution/answer that way other community users can get the benefit.
Created 09-29-2019 09:10 PM
Yes