<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: problem generating keytab with HTTP SPN in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350576#M236023</link>
    <description>&lt;P&gt;ktpass might be purely AD, might be worth it to open an AD case if that is the only option.&lt;BR /&gt;&lt;BR /&gt;Otherwise, Could you please try to create the keytab with the following&amp;nbsp;&lt;SPAN&gt;ktutil&lt;/SPAN&gt; commands&lt;SPAN&gt;:&lt;BR /&gt;add_entry -password -p HTTP&lt;STRONG&gt;@FQDN_DOMAIN.LO&amp;nbsp;&lt;/STRONG&gt;-k 1 -e arcfour-hmac-md5&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2022 00:09:22 GMT</pubDate>
    <dc:creator>JQUIROS</dc:creator>
    <dc:date>2022-08-23T00:09:22Z</dc:date>
    <item>
      <title>problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350562#M236013</link>
      <description>&lt;P&gt;hello cloudera community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are trying to create a keytab with the main one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"HTTP/hostname@DOMAIN.LOCAL"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ktpass -princ HTTP/hostname@DOMAIN.LOCAL -mapuser livy-http -crypto ALL -ptype KRB5_NT_PRINCIPAL -pass password2022 -target domain.local -out c:\temp\livy-http.keytab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I try to validate the ticket with this keytab returns the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Exception: krb_error 24 Pre-authentication information was invalid (24) Pre-authentication information was invalid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KrbException: Pre-authentication information was invalid (24)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at sun.security.krb5.KrbAsRep.&amp;lt;init&amp;gt;(Unknown Source)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at sun.security.krb5.KrbAsReqBuilder.send(Unknown Source)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at sun.security.krb5.KrbAsReqBuilder.action(Unknown Source)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at sun.security.krb5.internal.tools.Kinit.&amp;lt;init&amp;gt;(Unknown Source)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at sun.security.krb5.internal.tools.Kinit.main(Unknown Source)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Caused by: KrbException: Identifier doesn't match expected value (906)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at sun.security.krb5.internal.KDCRep.init(Unknown Source)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at sun.security.krb5.internal.ASRep.init(Unknown Source)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;at sun.security.krb5.internal.ASRep.&amp;lt;init&amp;gt;(Unknown Source)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;... 5 more&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yagoaparecidoti_0-1661193823116.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/35271i5180D6B5AE680107/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yagoaparecidoti_0-1661193823116.png" alt="yagoaparecidoti_0-1661193823116.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this user "&lt;STRONG&gt;livy-http&lt;/STRONG&gt;" is already created in AD and with the SPN "&lt;STRONG&gt;HTTP/hostname@DOMAIN.LOCAL&lt;/STRONG&gt;" attached to it&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what are we doing wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 18:44:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350562#M236013</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-08-22T18:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350565#M236014</link>
      <description>&lt;P&gt;Hi sir,&lt;BR /&gt;This command is probably better to be evaluated in an AD forum, It is a power shell command in the AD server. Based on the stack trace you are getting, the pre-authentication is failing. Normally, this may happen because the account is enabled with pre-auth or you are using a cipher that requires pre-auth [0]&lt;BR /&gt;&lt;BR /&gt;We can try to create by using only legacy ciphers:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;##########################################&lt;BR /&gt;# How to Create a keytab from client application&lt;BR /&gt;##########################################&lt;/P&gt;&lt;P&gt;# Step 1: Type ktutil to enter prompt:&lt;BR /&gt;ktutil&lt;/P&gt;&lt;P&gt;# Step 2: At the ktutil prompt, add the authentication command below:&lt;BR /&gt;ktutil:&amp;nbsp; add_entry -password -p&amp;nbsp;&lt;STRONG&gt;livy-http&lt;/STRONG&gt;&lt;STRONG&gt;@DOMAIN.LOCAL&lt;/STRONG&gt;-k 1 -e arcfour-hmac-md5&lt;/P&gt;&lt;P&gt;# Step 3: Type password&lt;BR /&gt;Password for&amp;nbsp;&lt;STRONG&gt;livy-http&lt;/STRONG&gt;&lt;STRONG&gt;@DOMAIN.LOCAL&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;# Step 4: Create Keytab file at ktutil prompt:&lt;BR /&gt;# ktutil:&amp;nbsp; &amp;lt;command below to create keytab file&amp;gt;&lt;BR /&gt;wkt&amp;nbsp;&lt;STRONG&gt;livy-http.&lt;/STRONG&gt;keytab&lt;/P&gt;&lt;P&gt;# Step 5: Type quit to exit&lt;BR /&gt;quit&lt;/P&gt;&lt;P&gt;# Step 6: Verify Keytab Works Using kinit:&lt;BR /&gt;/usr/bin/kinit -V -kt&amp;nbsp;&lt;STRONG&gt;livy-http.&lt;/STRONG&gt;keytab &lt;STRONG&gt;livy-http&lt;/STRONG&gt;&lt;STRONG&gt;@DOMAIN.LOCAL&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;[0] refer to the box checks "Do not required Kerberos Preauthentication":&amp;nbsp; &lt;A href="https://docs.informatica.com/data-integration/powercenter/10-2/security-guide/kerberos-authentication/preparing-to-enable-kerberos-authentication/step-3--create-kerberos-principal-accounts-in-active-directory.html" target="_blank"&gt;https://docs.informatica.com/data-integration/powercenter/10-2/security-guide/kerberos-authentication/preparing-to-enable-kerberos-authentication/step-3--create-kerberos-principal-accounts-in-active-directory.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 19:28:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350565#M236014</guid>
      <dc:creator>JQUIROS</dc:creator>
      <dc:date>2022-08-22T19:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350566#M236015</link>
      <description>&lt;P&gt;hi&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74477"&gt;@JQUIROS&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should "kutil" command be run on cluster host or AD host?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 19:36:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350566#M236015</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-08-22T19:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350567#M236016</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74477"&gt;@JQUIROS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if create another keytab with the SPN below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"livy-http/hostname@DOMAIN.LOCAL"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;works, no problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the problem is when using &lt;STRONG&gt;HTTP&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 19:43:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350567#M236016</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-08-22T19:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350568#M236017</link>
      <description>&lt;P&gt;In regards to your first question, it is on the cluster host.&lt;BR /&gt;&lt;BR /&gt;For your second, We only create the keytab against the service SPN (&lt;STRONG&gt;"livy-http/hostname@DOMAIN.LOCAL"&lt;/STRONG&gt;), what is the business purpose to create the keytab with HTTP principals? The service is authenticating against Service Principals, not HTTP.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 19:47:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350568#M236017</guid>
      <dc:creator>JQUIROS</dc:creator>
      <dc:date>2022-08-22T19:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350569#M236018</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74477"&gt;@JQUIROS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we need to create the HTTP SPN keytab to use in the Livy service, as described in the link below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://enterprise-docs.anaconda.com/en/latest/admin/advanced/config-livy-server.html" target="_blank"&gt;https://enterprise-docs.anaconda.com/en/latest/admin/advanced/config-livy-server.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the link above, kadmin was used, but we don't have kadmin but AD.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2022 19:51:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350569#M236018</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-08-22T19:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350576#M236023</link>
      <description>&lt;P&gt;ktpass might be purely AD, might be worth it to open an AD case if that is the only option.&lt;BR /&gt;&lt;BR /&gt;Otherwise, Could you please try to create the keytab with the following&amp;nbsp;&lt;SPAN&gt;ktutil&lt;/SPAN&gt; commands&lt;SPAN&gt;:&lt;BR /&gt;add_entry -password -p HTTP&lt;STRONG&gt;@FQDN_DOMAIN.LO&amp;nbsp;&lt;/STRONG&gt;-k 1 -e arcfour-hmac-md5&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 00:09:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350576#M236023</guid>
      <dc:creator>JQUIROS</dc:creator>
      <dc:date>2022-08-23T00:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350641#M236038</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74477"&gt;@JQUIROS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using the &lt;STRONG&gt;ktutil&lt;/STRONG&gt; command it was possible to create the principal:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HTTP/hostname@DOMAIN.LOCAL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to export keytab now?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 15:06:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350641#M236038</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-08-23T15:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350643#M236040</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74477"&gt;@JQUIROS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we were able to export the keytab with the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;write_kt http.keytab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when validating the ticket with the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;kinit -kt http.keytab HTTP/hostnamae@DOMAIN.LOCAL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;got the same error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;kinit: Preauthentication failed while getting initial credentials&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 15:13:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350643#M236040</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-08-23T15:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350644#M236041</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96163"&gt;@yagoaparecidoti&lt;/a&gt;,&lt;BR /&gt;The error is coming directly from the Active Directory KDC, please limit the keytab to RC4 HMAC as commented earlier. Scroll up on the first post.&lt;BR /&gt;Then, try to kinit by using the trace to understand the issue better:&lt;/P&gt;&lt;P&gt;KRB5_TRACE=/dev/stdout kinit -kt&amp;nbsp;&lt;STRONG&gt;http.keytab&amp;nbsp;HTTP/hostnamae@DOMAIN.LOCAL&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 15:58:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350644#M236041</guid>
      <dc:creator>JQUIROS</dc:creator>
      <dc:date>2022-08-23T15:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350645#M236042</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/74477"&gt;@JQUIROS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the command to create the entry was:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;add_entry -password -p HTTP/hostname@DOMAIN.LOCAL -k 1 -e rc4-hmac&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then export the keytab with the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;wkt http.keytab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then to validate the tiker the command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;KRB5_TRACE=/dev/stdout kinit -kt http.keytab HTTP/hostname@DOMAIN.LOCAL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;presented the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Getting initial credentials for HTTP/hostname@DOMAIN.LOCALLooked up etypes in keytab: rc4-hmac&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Sending unauthenticated request&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Sending request (237 bytes) to DOMAIN.LOCAL&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Sending initial UDP request to dgram 172.22.22.22:88&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Received answer (229 bytes) from dgram 172.22.22.22:88&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Response was from master KDC&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Received error from KDC: -1765328359/Additional pre-authentication required&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Preauthenticating using KDC method data&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Processing preauth types: PA-PK-AS-REQ (16), PA-PK-AS-REP_OLD (15), PA-ETYPE-INFO2 (19), PA-ENC-TIMESTAMP (2)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Selected etype info: etype rc4-hmac, salt "", params ""&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Retrieving HTTP/hostname@DOMAIN.LOCAL from FILE:http.keytab (vno 0, enctype rc4-hmac) with result: 0/Success&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;AS key obtained for encrypted timestamp: rc4-hmac/20C1&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Encrypted timestamp (for 1661441475.76781): plain 301AA011199992303232BED, encrypted 3625254347B405C2739999992C5C50F451C0A477AE3AD421DF&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Preauth module encrypted_timestamp (2) (real) returned: 0/Success&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Produced preauth for next request: PA-ENC-TIMESTAMP (2)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Sending request (313 bytes) to DOMAIN.LOCAL&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Sending initial UDP request to dgram 172.22.22.22:88&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Received answer (196 bytes) from dgram 172.22.22.22:88&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Response was from master KDC&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Received error from KDC: -1765328360/Preauthentication failed&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Preauthenticating using KDC method data&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Processing preauth types: PA-ETYPE-INFO2 (19)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Selected etype info: etype rc4-hmac, salt "", params ""&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;kinit: Preauthentication failed while getting initial credentials&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 16:21:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350645#M236042</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-08-23T16:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350659#M236043</link>
      <description>&lt;P&gt;We need to reach out the AD support, the response is coming from the AD&amp;nbsp;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;Response was from master KDC&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Received error from KDC: -1765328360/Preauthentication failed&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Preauthenticating using KDC method data&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Processing preauth types: PA-ETYPE-INFO2 (19)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Selected etype info: etype rc4-hmac, salt "", params ""&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;kinit: Preauthentication failed while getting initial credentials&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;[0] Reference:&amp;nbsp;&lt;A href="https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/ae60c948-fda8-45c2-b1d1-a71b484dd1f7" target="_blank"&gt;https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-kile/ae60c948-fda8-45c2-b1d1-a71b484dd1f7&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 16:55:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350659#M236043</guid>
      <dc:creator>JQUIROS</dc:creator>
      <dc:date>2022-08-23T16:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350837#M236087</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96163"&gt;@yagoaparecidoti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you need the keytab with the HTTP principal for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 00:00:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350837#M236087</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-08-26T00:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350885#M236101</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to use in the livy service, as requested in the processes in the links below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://danielfrg.com/blog/2018/08/spark-livy/" target="_blank"&gt;https://danielfrg.com/blog/2018/08/spark-livy/&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://enterprise-docs.anaconda.com/en/latest/admin/advanced/config-livy-server.html" target="_blank"&gt;https://enterprise-docs.anaconda.com/en/latest/admin/advanced/config-livy-server.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Aug 2022 12:29:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350885#M236101</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-08-26T12:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350986#M236106</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96163"&gt;@yagoaparecidoti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that to generate a keytab for any principal you need to know the password for that principal. The HTTP/hostname principal probably already exists in your AD and has some unknown password. Without knowing that you would have to reset the principal password to be able to create a keytab for it. And if you reset its password you will invalidate any keytabs that already exist for that principal that other services may be using.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Aug 2022 01:55:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/350986#M236106</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-08-27T01:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/351073#M236143</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the ad has two users:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;livy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;livy-http&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the user &lt;STRONG&gt;livy&lt;/STRONG&gt; has the SPN:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;livy/hostname@DOMAIN.LOCAL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it is working without problem in kinit&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the user &lt;STRONG&gt;livy-http&lt;/STRONG&gt; has the SPN:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HTTP/hostname@DOMAIN.LOCAL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it is showing the error described above&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 13:33:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/351073#M236143</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-08-29T13:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/351104#M236154</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96163"&gt;@yagoaparecidoti&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know the passwords for the users &lt;STRONG&gt;livy&lt;/STRONG&gt; and &lt;STRONG&gt;livy-http&lt;/STRONG&gt;? Can you manually kinit with those 2 users from the command line?&lt;/P&gt;&lt;P&gt;Can you also check in AD what's the value for &lt;STRONG&gt;userPrincipalName&lt;/STRONG&gt; property of those two users and share it here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 22:54:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/351104#M236154</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-08-29T22:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/351152#M236171</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, we know the passwords, because we created these two users from scratch&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;before creating the keytabs for the two users, we managed to kinit the two users without problem "&lt;STRONG&gt;kinit user&lt;/STRONG&gt;", after creating the keytabs for the two users, kinit only works with the keytab, but it only works on the livy user, when we try to run kinit in livy-http user keytab displays the error "&lt;STRONG&gt;kinit: Preauthentication failed while getting initial credentials&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the userprincipalname of each user is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;livy:&lt;BR /&gt;&lt;STRONG&gt;livy/hostname_livy_server@DOMAIN.LOCAL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;livy-http:&lt;BR /&gt;&lt;STRONG&gt;HTTP/hostname_livy_server@DOMAIN.LOCAL&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 12:41:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/351152#M236171</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-08-30T12:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/351156#M236172</link>
      <description>&lt;P&gt;The names you listed are the &lt;STRONG&gt;servicePrincipalName&lt;/STRONG&gt;. These are different from the &lt;STRONG&gt;userPrincipalName&lt;/STRONG&gt;. Could you please check the latter and let me know what they are?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 13:32:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/351156#M236172</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-08-30T13:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem generating keytab with HTTP SPN</title>
      <link>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/351158#M236174</link>
      <description>&lt;P&gt;Could you please run the kinit commands for both accounts and share a screenshot showing the command line and the output?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 13:36:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/problem-generating-keytab-with-HTTP-SPN/m-p/351158#M236174</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-08-30T13:36:26Z</dc:date>
    </item>
  </channel>
</rss>

