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]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

problem generating keytab with HTTP SPN

avatar
Expert Contributor

hello cloudera community,

 

we are trying to create a keytab with the main one:

 

"HTTP/[email protected]"

 

with the command:

 

ktpass -princ HTTP/[email protected] -mapuser livy-http -crypto ALL -ptype KRB5_NT_PRINCIPAL -pass password2022 -target domain.local -out c:\temp\livy-http.keytab

 

but I try to validate the ticket with this keytab returns the error:

 

Exception: krb_error 24 Pre-authentication information was invalid (24) Pre-authentication information was invalid

 

KrbException: Pre-authentication information was invalid (24)
at sun.security.krb5.KrbAsRep.<init>(Unknown Source)
at sun.security.krb5.KrbAsReqBuilder.send(Unknown Source)
at sun.security.krb5.KrbAsReqBuilder.action(Unknown Source)
at sun.security.krb5.internal.tools.Kinit.<init>(Unknown Source)
at sun.security.krb5.internal.tools.Kinit.main(Unknown Source)
Caused by: KrbException: Identifier doesn't match expected value (906)
at sun.security.krb5.internal.KDCRep.init(Unknown Source)
at sun.security.krb5.internal.ASRep.init(Unknown Source)
at sun.security.krb5.internal.ASRep.<init>(Unknown Source)
... 5 more

 

yagoaparecidoti_0-1661193823116.png

 

this user "livy-http" is already created in AD and with the SPN "HTTP/[email protected]" attached to it

 

what are we doing wrong?

20 REPLIES 20

avatar
Expert Contributor

hi @araujo 

 

the userPrincipalName of user livy is:

 

livy/[email protected]

 

yagoaparecidoti_6-1663249727294.png

 

the userPrincipalName of the livy-http user is:

 

[email protected]

 

yagoaparecidoti_5-1663249640672.png

 

running the command "kinit livy":

 

yagoaparecidoti_0-1663248966717.png

 

running the command "kinit livy-http":

 

yagoaparecidoti_1-1663249040580.png

 

running the "kinit" command with the keytab created for user livy:

 

yagoaparecidoti_2-1663249232292.png

 

running the command "kinit" with the keytab created for the user livy-http:

 

yagoaparecidoti_3-1663249303452.png

 

we've been facing this problem for months, we haven't found the solution yet.