<?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: When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99300#M12471</link>
    <description>&lt;P&gt;It is before it even gets to the other services.  It happens during the "&lt;STRONG&gt;Test Kerberos Client"&lt;/STRONG&gt; step.  I haven't attempted to ignore it and proceed.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Dec 2015 10:32:08 GMT</pubDate>
    <dc:creator>enor</dc:creator>
    <dc:date>2015-12-15T10:32:08Z</dc:date>
    <item>
      <title>When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99298#M12469</link>
      <description>&lt;P&gt;Using the same stack in dev we successfully Kerberized the cluster.  Now in production the process is being blocked at testing the KDC.  The service check user is being created with a lower case realm;&lt;/P&gt;&lt;P&gt;prod_hdp-121415@abc.def.com instead of prod_hdp-121415@ABC.DEF.COM &lt;/P&gt;&lt;P&gt;When Ambari tries to kinit with this principal it fails;&lt;/P&gt;&lt;P&gt;resource_management.core.exceptions.Fail: Execution of '/usr/bin/kinit -c /var/lib/ambari-agent/tmp/kerberos_service_check_cc_25fc6ba87c6a6872eb2c3b3167344f73 -kt /etc/security/keytabs/kerberos.service_check.121415.keytab hdp_prod-121415@abc.def.com' returned 1. kinit: Cannot find KDC for requested realm while getting initial credentials&lt;/P&gt;&lt;P&gt;To rule out a problem with the prod admin account and the prod container, the dev container and dev admin account were used in the production Ambari with the same result.   So this is a configuration problem specific to the production environment.&lt;/P&gt;&lt;P&gt;Where should I look for something that would be lower casing the realm?  It is correct in Ambari and the generated krb5.conf file.&lt;/P&gt;&lt;P&gt;The krb5.conf file;&lt;/P&gt;&lt;P&gt;[libdefaults] &lt;/P&gt;&lt;P&gt;  renew_lifetime = 7d &lt;/P&gt;&lt;P&gt;  forwardable = true &lt;/P&gt;&lt;P&gt;  default_realm = ABC.DEF.COM &lt;/P&gt;&lt;P&gt;  ticket_lifetime = 24h &lt;/P&gt;&lt;P&gt;  dns_lookup_realm = false &lt;/P&gt;&lt;P&gt;  dns_lookup_kdc = false &lt;/P&gt;&lt;P&gt;  #default_tgs_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5 &lt;/P&gt;&lt;P&gt;  #default_tkt_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5 &lt;/P&gt;&lt;P&gt;[domain_realm] &lt;/P&gt;&lt;P&gt;abc.def.com = ABC.DEF.COM &lt;/P&gt;&lt;P&gt;  .abc.def.com = ABC.DEF.COM&lt;/P&gt;&lt;P&gt;[logging] &lt;/P&gt;&lt;P&gt;  default = FILE:/var/log/krb5kdc.log &lt;/P&gt;&lt;P&gt;  admin_server = FILE:/var/log/kadmind.log &lt;/P&gt;&lt;P&gt;  kdc = FILE:/var/log/krb5kdc.log &lt;/P&gt;&lt;P&gt;[realms] &lt;/P&gt;&lt;P&gt;ABC.DEF.COM = &lt;/P&gt;&lt;P&gt;{ &lt;/P&gt;&lt;P&gt;    admin_server = ldap.abc.def.com &lt;/P&gt;&lt;P&gt;    kdc = ldap.abc.def.com &lt;/P&gt;&lt;P&gt;  }&lt;/P&gt;&lt;PRE&gt;########## Performing 'GET' on (Site:krb5-conf, Tag:version1450197141581)
"properties" : {
"conf_dir" : "/etc",
"content" : "\n[libdefaults]\n renew_lifetime = 7d\n forwardable = true\n default_realm = {{realm}}\n ticket_lifetime = 24h\n dns_lookup_realm = false\n dns_lookup_kdc = false\n #default_tgs_enctypes = {{encryption_types}}\n #default_tkt_enctypes = {{encryption_types}}\n\n{% if domains %}\n[domain_realm]\n{% for domain in domains.split(',') %}\n {{domain}} = {{realm}}\n{% endfor %}\n{% endif %}\n\n[logging]\n default = FILE:/var/log/krb5kdc.log\n admin_server = FILE:/var/log/kadmind.log\n kdc = FILE:/var/log/krb5kdc.log\n\n[realms]\n {{realm}} = {\n admin_server = {{admin_server_host|default(kdc_host, True)}}\n kdc = {{kdc_host}}\n }\n\n{# Append additional realm declarations below #}",
"domains" : "abc.def.com,.abc.def.com",
"manage_krb5_conf" : "true"
}
&lt;/PRE&gt;&lt;PRE&gt;########## Performing 'GET' on (Site:kerberos-env, Tag:version1450197141581)
"properties" : {
"ad_create_attributes_template" : "\n{\n \"objectClass\": [\"top\", \"person\", \"organizationalPerson\", \"user\"],\n \"cn\": \"$principal_name\",\n #if( $is_service )\n \"servicePrincipalName\": \"$principal_name\",\n #end\n \"userPrincipalName\": \"$normalized_principal\",\n \"unicodePwd\": \"$password\",\n \"accountExpires\": \"0\",\n \"userAccountControl\": \"66048\"\n}",
"admin_server_host" : "ldap.abc.def.com",
"case_insensitive_username_rules" : "false",
"container_dn" : "OU=Hadoop,OU=Users,DC=abc,DC=def,DC=com",
"encryption_types" : "aes des3-cbc-sha1 rc4 des-cbc-md5",
"executable_search_paths" : "/usr/bin, /usr/kerberos/bin, /usr/sbin, /usr/lib/mit/bin, /usr/lib/mit/sbin",
"install_packages" : "true",
"kdc_create_attributes" : "",
"kdc_host" : "ldap.abc.def.com",
"kdc_type" : "active-directory",
"ldap_url" : "ldaps://ldap.abc.def.com:636",
"manage_identities" : "true",
"password_length" : "20",
"password_min_digits" : "3",
"password_min_lowercase_letters" : "1",
"password_min_punctuation" : "1",
"password_min_uppercase_letters" : "1",
"password_min_whitespace" : "0",
"realm" : "ABC.DEF.COM",
"service_check_principal_name" : "${cluster_name}-${short_date}"
}


&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Dec 2015 06:44:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99298#M12469</guid>
      <dc:creator>enor</dc:creator>
      <dc:date>2015-12-15T06:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99299#M12470</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/43/enor.html" nodeid="43"&gt;@Erik Nor&lt;/A&gt; Is it only for one service? or all of it?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 08:16:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99299#M12470</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-15T08:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99300#M12471</link>
      <description>&lt;P&gt;It is before it even gets to the other services.  It happens during the "&lt;STRONG&gt;Test Kerberos Client"&lt;/STRONG&gt; step.  I haven't attempted to ignore it and proceed.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 10:32:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99300#M12471</guid>
      <dc:creator>enor</dc:creator>
      <dc:date>2015-12-15T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99301#M12472</link>
      <description>&lt;P&gt;Hi, Which version of Ambari are you using?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 22:11:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99301#M12472</guid>
      <dc:creator>jeff1</dc:creator>
      <dc:date>2015-12-15T22:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99302#M12473</link>
      <description>&lt;P&gt;Can you post the results of the following API call?&lt;/P&gt;&lt;PRE&gt;GET /api/v1/clusters/CLUSTER_NAME/configurations?type=kerberos-env&amp;amp;fields=properties/*
&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: you will need to change &lt;STRONG&gt;&lt;EM&gt;CLUSTER_NAME&lt;/EM&gt;&lt;/STRONG&gt; to the name of your cluster.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://ambari-server-host:8080/api/v1/clusters/MyCluster/configurations?type=kerberos-env&amp;amp;fields=properties/*" target="_blank"&gt;http://ambari-server-host:8080/api/v1/clusters/MyCluster/configurations?type=kerberos-env&amp;amp;fields=properties/*&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Basically, I am interested in the &lt;STRONG&gt;realm&lt;/STRONG&gt; property.  So you can just post that if the other information may be sensitive. &lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 00:02:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99302#M12473</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2015-12-16T00:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99303#M12474</link>
      <description>&lt;P&gt;Ambari v2.1.2&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 00:37:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99303#M12474</guid>
      <dc:creator>enor</dc:creator>
      <dc:date>2015-12-16T00:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99304#M12475</link>
      <description>&lt;P&gt;I added it to the question.  Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 00:50:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99304#M12475</guid>
      <dc:creator>enor</dc:creator>
      <dc:date>2015-12-16T00:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99305#M12476</link>
      <description>&lt;P&gt;On the host where the service check was executed, can you find the command.JSON file that was use to execute the command and post the contents of the "commandParams" block?&lt;/P&gt;&lt;P&gt;To find the correct command.json file do:&lt;/P&gt;&lt;PRE&gt;grep KERBEROS_SERVICE_CHECK /var/lib/ambari-agent/data/command-*.json
&lt;/PRE&gt;&lt;P&gt;One or more files may be listed... any will be fine.&lt;/P&gt;&lt;P&gt;The commandParams from my cluster looks like:&lt;/P&gt;&lt;PRE&gt;"commandParams": {
  ...
  "principal_name": "c1-121515@EXAMPLE.COM",
  ...
}
&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Dec 2015 01:08:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99305#M12476</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2015-12-16T01:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99306#M12477</link>
      <description>&lt;P&gt;"principal_name": "hdp_prod-121515@abc.def.com",&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 01:44:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99306#M12477</guid>
      <dc:creator>enor</dc:creator>
      <dc:date>2015-12-16T01:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: When Kerberizing via Ambari against an AD the service check principal is getting a lower case realm</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99307#M12478</link>
      <description>&lt;P&gt;It appears that the UI stores the realm in the user-specified Kerberos descriptor artifact and that at some point the lowercase form of the realm was specified.  However when the case of the realm was corrected, the user-specified Kerberos descriptor artifact was not updated and therefore the test Kerberos identity was created incorrectly.  &lt;/P&gt;&lt;P&gt;I think this would have corrected itself if the test was skipped, but rather than take a chance on that, it is best to back out of the Kerberos Wizard (to the first page of it) and then exit - this makes sure the Kerberos service is cleaned up properly. Then the user-specified Kerberos descriptor artifact needs to be deleted using&lt;/P&gt;&lt;PRE&gt;DELETE /api/v1/clusters/CLUSTER_NAME/artifacts/kerberos_descriptor&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Note&lt;/STRONG&gt;: replace &lt;STRONG&gt;&lt;EM&gt;CLUSTER_NAME&lt;/EM&gt;&lt;/STRONG&gt; with the name of the cluster.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;curl -H "X-Requested-By:ambari" -u admin:admin -i -X DELETE &lt;A href="http://AMBARI_SERVER:8080/api/v1/clusters/CLUSTER_NAME/artifacts/kerberos_descriptor" target="_blank"&gt;http://AMBARI_SERVER:8080/api/v1/clusters/CLUSTER_NAME/artifacts/kerberos_descriptor&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;Then restart the Enable Kerberos Wizard, making sure to set the realm with the proper case. &lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 02:50:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/When-Kerberizing-via-Ambari-against-an-AD-the-service-check/m-p/99307#M12478</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2015-12-16T02:50:46Z</dc:date>
    </item>
  </channel>
</rss>

