<?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: Getting error when trying to Generate Missing Credentials in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46122#M48590</link>
    <description>&lt;P&gt;As I recollect the &lt;STRONG&gt;msds-supportedEncryptionTypes&lt;/STRONG&gt; was not the problem.&amp;nbsp; I did have the &lt;STRONG&gt;&lt;SPAN&gt;Active Directory Set Encryption Types&lt;/SPAN&gt;&lt;/STRONG&gt; checked however.&amp;nbsp; I went ahead and unchecked it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could be wrong, but the issue seems to be that in the original script the snippet&lt;/P&gt;&lt;PRE&gt;ldapmodify -H "$AD_SERVER" $SIMPLE_PWD_STR &amp;lt;&amp;lt;-%EOF
dn: $DIST_NAME
changetype: add
$(echo "$OBJECTCLASSES" | sed '/str/d')
distinguishedName: $DIST_NAME
....&lt;/PRE&gt;&lt;P&gt;the $OBJECTCLASSES comma delimited string isn't being handled correctly.&amp;nbsp; Once I hardcoded it, it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get answer about the AD version.&amp;nbsp; I'm having to work through these issues with my IT department.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to reinitalize things to regenerate the credentials again?&amp;nbsp; I'd be happy to help try to debug the original gen_credentials_ad.sh script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2016 23:31:01 GMT</pubDate>
    <dc:creator>JoeHellmers</dc:creator>
    <dc:date>2016-10-10T23:31:01Z</dc:date>
    <item>
      <title>Getting error when trying to Generate Missing Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/45907#M48587</link>
      <description>&lt;P&gt;When trying to Generate Missing Credentials in Cloudera Manager I'm getting an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm interfacing with Active Directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to me that there is a bug in the /usr/share/cmf/gen_credentials_ad.sh script.&amp;nbsp; In the Security section Cloudera Manager reports that the status is "Successfully Enabled Kerberos" so it seems I'm connecting to the Domain/KDC just fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anybody have these troubles before?&amp;nbsp; I'm using Cloudera Manager 5.8.2.&amp;nbsp; Red Hat 7.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="modal-body "&gt;&lt;DIV class="command-container"&gt;&lt;DIV class="summary-row"&gt;&lt;PRE&gt;/usr/share/cmf/bin/gen_credentials_ad.sh failed with exit code 16 and output of &amp;lt;&amp;lt;
+ export PATH=/usr/kerberos/bin:/usr/kerberos/sbin:/usr/lib/mit/sbin:/usr/sbin:/usr/lib/mit/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin
+ PATH=/usr/kerberos/bin:/usr/kerberos/sbin:/usr/lib/mit/sbin:/usr/sbin:/usr/lib/mit/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin
+ KEYTAB_OUT=/var/run/cloudera-scm-server/cmf3470099377124057462.keytab
+ PRINC=hbase/pp-hadoop-sec1.accelrys.net@ACCELRYS.NET
+ USER=DGLtZkeNFI
+ PASSWD='REDACTED'
+ PASSWD='AaBb=REDACTED-'
+ DELETE_ON_REGENERATE=false
+ SET_ENCRYPTION_TYPES=true
+ ENC_TYPES_MASK=4
+ USERACCOUNTCONTROL=66048
+ ACCOUNTEXPIRES=0
+ OBJECTCLASSES='objectClass: top
'
+ DIST_NAME=CN=DGLtZkeNFI,ou=pp-hadoop,DC=accelrys,DC=net
+ '[' -z /var/run/cloudera-scm-server/krb53587799783946059745.conf ']'
+ echo 'Using custom config path '\''/var/run/cloudera-scm-server/krb53587799783946059745.conf'\'', contents below:'
+ cat /var/run/cloudera-scm-server/krb53587799783946059745.conf
+ SIMPLE_PWD_STR=
+ '[' '' = '' ']'
+ kinit -k -t /var/run/cloudera-scm-server/cmf3506971145990435068.keytab pp-hadoop@ACCELRYS.NET
++ mktemp /tmp/cm_ldap.XXXXXXXX
+ LDAP_CONF=/tmp/cm_ldap.jT0pFrVm
+ echo 'TLS_REQCERT     never'
+ echo 'sasl_secprops   minssf=0,maxssf=0'
+ export LDAPCONF=/tmp/cm_ldap.jT0pFrVm
+ LDAPCONF=/tmp/cm_ldap.jT0pFrVm
++ ldapsearch -LLL -H ldaps://dc1-accl-uswst.accelrys.net:636 -b ou=pp-hadoop,DC=accelrys,DC=net userPrincipalName=hbase/pp-hadoop-sec1.accelrys.net@ACCELRYS.NET
SASL/GSSAPI authentication started
SASL username: pp-hadoop@ACCELRYS.NET
SASL SSF: 0
+ PRINC_SEARCH=
+ set +e
+ echo
+ grep -q userPrincipalName
+ '[' 1 -eq 0 ']'
+ set -e
+ '[' true = true ']'
+ ldapmodify -H ldaps://dc1-accl-uswst.accelrys.net:636
++ echo 'objectClass: top
'
++ sed /str/d
++ echo hbase/pp-hadoop-sec1.accelrys.net@ACCELRYS.NET
++ sed -e 's/\@ACCELRYS.NET//g'
++ echo -n '"AaBb=REDACTED-"'
++ iconv -f UTF8 -t UTF16LE
++ base64 -w 0
SASL/GSSAPI authentication started
SASL username: pp-hadoop@ACCELRYS.NET
SASL SSF: 0
ldap_add: No such attribute (16)
	additional info: 00000057: LdapErr: DSID-0C090B38, comment: Error in attribute conversion operation, data 0, vece

&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV class="step-progress-bar"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="text-center"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="modal-footer"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="modal modal-wider modal-tall in"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="modal-backdrop  in"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:43:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/45907#M48587</guid>
      <dc:creator>JoeHellmers</dc:creator>
      <dc:date>2022-09-16T10:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when trying to Generate Missing Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46118#M48588</link>
      <description>&lt;P&gt;Found a fix, albeit a non-optimal one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the script gen_credentials_ad.sh I hard-coded the AD account properties&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;set -e
if [ "$SET_ENCRYPTION_TYPES" = "true" ]; then
ldapmodify -vH "$AD_SERVER" $SIMPLE_PWD_STR &amp;lt;&amp;lt;-%EOF
dn: $DIST_NAME
changetype: add
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
distinguishedName: $DIST_NAME
sAMAccountName: $USER
servicePrincipalName: $(echo $PRINC | sed -e "s/\@$CMF_REALM//g")
userPrincipalName: $PRINC
unicodePwd:: `echo -n "\"$PASSWD\"" | iconv -f UTF8 -t UTF16LE| base64 -w 0`
accountExpires: $ACCOUNTEXPIRES
userAccountControl: $USERACCOUNTCONTROL
%EOF&lt;/PRE&gt;&lt;P&gt;It would be nice for the script to be fixed by Cloudera.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 21:02:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46118#M48588</guid>
      <dc:creator>JoeHellmers</dc:creator>
      <dc:date>2016-10-10T21:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when trying to Generate Missing Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46119#M48589</link>
      <description>&lt;P&gt;Hello Joe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't have a chance to reply to your original post, but that AD error was a bit unclear anyway.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What did you end up identifying as the cause and what solution, exactly, did you implement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears you removed the &lt;STRONG&gt;msds-supportedEncryptionTypes&lt;/STRONG&gt; attribute. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, what version of Windows/AD are you using? &amp;nbsp;We have added that code&amp;nbsp;in Cloudera Manager 5.8.0 so that, if desired, Cloudera Manager will create the principal objects in Active Directory along with support for AES128 and AES256 encryption types. &amp;nbsp;You can opt out of this by making sure that&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;Active Directory Set Encryption Types&lt;/SPAN&gt;&lt;/STRONG&gt; is set to the default of&amp;nbsp;&lt;EM&gt;false&lt;/EM&gt; in Administration --&amp;gt; Settings --&amp;gt; Kerberos&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is off by default, so it must have been checked at some point. &amp;nbsp;If false, the&amp;nbsp;&lt;STRONG&gt;msds-supportedEncryptionTypes&lt;/STRONG&gt; is not set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another question is why your Active Directory schema does not support that attribute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 21:20:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46119#M48589</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2016-10-10T21:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when trying to Generate Missing Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46122#M48590</link>
      <description>&lt;P&gt;As I recollect the &lt;STRONG&gt;msds-supportedEncryptionTypes&lt;/STRONG&gt; was not the problem.&amp;nbsp; I did have the &lt;STRONG&gt;&lt;SPAN&gt;Active Directory Set Encryption Types&lt;/SPAN&gt;&lt;/STRONG&gt; checked however.&amp;nbsp; I went ahead and unchecked it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could be wrong, but the issue seems to be that in the original script the snippet&lt;/P&gt;&lt;PRE&gt;ldapmodify -H "$AD_SERVER" $SIMPLE_PWD_STR &amp;lt;&amp;lt;-%EOF
dn: $DIST_NAME
changetype: add
$(echo "$OBJECTCLASSES" | sed '/str/d')
distinguishedName: $DIST_NAME
....&lt;/PRE&gt;&lt;P&gt;the $OBJECTCLASSES comma delimited string isn't being handled correctly.&amp;nbsp; Once I hardcoded it, it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get answer about the AD version.&amp;nbsp; I'm having to work through these issues with my IT department.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to reinitalize things to regenerate the credentials again?&amp;nbsp; I'd be happy to help try to debug the original gen_credentials_ad.sh script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 23:31:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46122#M48590</guid>
      <dc:creator>JoeHellmers</dc:creator>
      <dc:date>2016-10-10T23:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when trying to Generate Missing Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46123#M48591</link>
      <description>&lt;P&gt;Very interesting. &amp;nbsp;I see that the output you have only has objectClass=top when the default is:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Active Directory Account Properties&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;accountExpires=0,objectClass=top,objectClass=person,objectClass=organizationalPerson,objectClass=user&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;If you have a little blue arrow near the "&lt;SPAN&gt;Active Directory Account Properties" configuration in the Kerberos Settings, click that to return to the default.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That said, you can regenerate credentials by shutting down your cluster and then checking all principals and clicking the&amp;nbsp;&lt;STRONG&gt;Regenerate Selected&lt;/STRONG&gt; button. &amp;nbsp;If you don't have&amp;nbsp;&lt;STRONG&gt;&lt;SPAN&gt;Active Directory Delete Accounts on Credential Regeneration&lt;/SPAN&gt;&lt;/STRONG&gt; checked in your Kerberos Settings, you'll need to manually delete the principal objects from AD first.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't think this is an outright bug, but it would be nice to know what is going on with the objectclasses list.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 00:36:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46123#M48591</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2016-10-11T00:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when trying to Generate Missing Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46124#M48592</link>
      <description>&lt;P&gt;OK.&amp;nbsp; I switched back to the original script and put the default for the Account Properties.&amp;nbsp; I was able to regenerate no problem.&amp;nbsp; The encryption types is not checked.&amp;nbsp; Perhaps that was the problem then.&amp;nbsp; Haven't heard back yet about AD version(s).&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2016 01:09:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/46124#M48592</guid>
      <dc:creator>JoeHellmers</dc:creator>
      <dc:date>2016-10-11T01:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when trying to Generate Missing Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/56524#M48593</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm having this same issue... I think&lt;/P&gt;&lt;P&gt;see I'm using active directory... and I'm using the encryption type: &amp;nbsp;&lt;STRONG&gt;aes256-cts-hmac-sha1-96&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;only... I'm running kinit on the server and everything looks to be good... then I try to generate the missing credentials which are all of then but I'm getting this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Kerberos encryption types configuration is invalid or missing.&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;as I said the encryption type is indeed set up, I also checked the file krbg5.conf and everythig looks good, in the AD I'm forcing the AES types within a policy.&lt;/P&gt;&lt;P&gt;my guess is that the encryption type is wrong... but I'm really lost .&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2017 22:38:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/56524#M48593</guid>
      <dc:creator>jchavesST</dc:creator>
      <dc:date>2017-06-26T22:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when trying to Generate Missing Credentials</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/56525#M48594</link>
      <description>well... I resolved this by adding :&lt;BR /&gt;-aes256-cts-hmac-sha1-96&lt;BR /&gt;-aes128-cts&lt;BR /&gt;only those 2...&lt;BR /&gt;hope this help!&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Jun 2017 00:07:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Getting-error-when-trying-to-Generate-Missing-Credentials/m-p/56525#M48594</guid>
      <dc:creator>jchavesST</dc:creator>
      <dc:date>2017-06-27T00:07:27Z</dc:date>
    </item>
  </channel>
</rss>

