<?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: kinit: Preauthentication failed while getting initial credentials in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/kinit-Preauthentication-failed-while-getting-initial/m-p/412150#M253276</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/2201"&gt;@tableau&lt;/a&gt;,&amp;nbsp;Did the response assist in resolving your query? If it did, please mark the relevant reply as the solution, as it will help others locate the answer more easily in the future.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Aug 2025 05:43:54 GMT</pubDate>
    <dc:creator>VidyaSargur</dc:creator>
    <dc:date>2025-08-22T05:43:54Z</dc:date>
    <item>
      <title>kinit: Preauthentication failed while getting initial credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kinit-Preauthentication-failed-while-getting-initial/m-p/412045#M253213</link>
      <description>&lt;P&gt;I cloned a cdp 7.3.1-1 one node that is kerb enabled, to connect to a kdc server in a different domain.&lt;/P&gt;&lt;P&gt;During the kerberos wizard, I choose "Administration" | "security" | "Kerberos Credentials" | "Import KDC Account Manager Credentials", and put in valid username and password, then I get "kinit: Preauthentication failed while getting initial credentials"&lt;/P&gt;&lt;P&gt;the same user name / pwd pair, I can do kinit xx@TEST.LAN, and get valid results from klist. So I know the credential is good. I have validated on the AD server, use delegation wizard to give add, modify delete rights to the user xx.&lt;/P&gt;&lt;P&gt;If I run Generate Missing Credentials, I see "SIMPLE_PWD_STR='-x -D cloudera@old kdc server -w REDACTED'", and this refers to the old kdc server.&lt;BR /&gt;So I need to know how to change the setting on ldaps and how I can solve the issue with kinit: Preauthentication failed while getting initial credentials&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 06:14:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kinit-Preauthentication-failed-while-getting-initial/m-p/412045#M253213</guid>
      <dc:creator>tableau</dc:creator>
      <dc:date>2025-08-06T06:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: kinit: Preauthentication failed while getting initial credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kinit-Preauthentication-failed-while-getting-initial/m-p/412050#M253218</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/2201"&gt;@tableau&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;If pre-authentication is failing despite using the correct credentials, it’s possible that the issue is due to a mismatch in the letter-case of the username. Specifically, the username provided may not match the &lt;EM&gt;&lt;STRONG&gt;userPrincipalAttribute&lt;/STRONG&gt;&lt;/EM&gt; value (typically &lt;EM&gt;userPrincipalName&lt;/EM&gt;) in Active Directory.&lt;/P&gt;&lt;P&gt;When AES encryption types are used, Active Directory derives the key salt by concatenating the &lt;STRONG&gt;realm name&lt;/STRONG&gt; with the &lt;STRONG&gt;username&lt;/STRONG&gt;, and this process is &lt;STRONG&gt;case-sensitive&lt;/STRONG&gt;. Therefore, any mismatch in letter-case can lead to authentication failure.&lt;/P&gt;&lt;P&gt;To verify the correct casing of the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;userPrincipalAttribute &lt;/STRONG&gt;&lt;/EM&gt;for the KDC admin user, you can run the following &lt;FONT color="#000000"&gt;ldapsearch&lt;/FONT&gt; command:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;ldapsearch -v -H ldaps://{LDAP_URL}:636 -D &lt;SPAN class="hljs-string"&gt;'xx@TEST.LAN'&lt;/SPAN&gt; -W -b &lt;SPAN class="hljs-string"&gt;'{SEARCHBASE}'&lt;/SPAN&gt; userPrincipalName=&lt;SPAN class="hljs-string"&gt;"xx@TEST.LAN"&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Once confirmed, use the &lt;STRONG&gt;exact same letter-case&lt;/STRONG&gt; when importing the KDC account manager credentials under:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Administration → Security → Kerberos Credentials → Import KDC Account Manager Credentials&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Additionally, if the old KDC details still appear during the &lt;STRONG&gt;'Generate Missing Credentials'&lt;/STRONG&gt; operation, please ensure the new KDC is correctly configured under:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Administration → Security → Kerberos Credentials → Setup KDC for this Cloudera Manager&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Let me know if any further clarification is needed.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 08:20:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kinit-Preauthentication-failed-while-getting-initial/m-p/412050#M253218</guid>
      <dc:creator>Sean464</dc:creator>
      <dc:date>2025-08-06T08:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: kinit: Preauthentication failed while getting initial credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/kinit-Preauthentication-failed-while-getting-initial/m-p/412150#M253276</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/2201"&gt;@tableau&lt;/a&gt;,&amp;nbsp;Did the response assist in resolving your query? If it did, please mark the relevant reply as the solution, as it will help others locate the answer more easily in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Aug 2025 05:43:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/kinit-Preauthentication-failed-while-getting-initial/m-p/412150#M253276</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2025-08-22T05:43:54Z</dc:date>
    </item>
  </channel>
</rss>

