<?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: Kerberos issue in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-issue/m-p/191656#M68407</link>
    <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/1897/ashneesharma88.html"&gt;Ashnee Sharma&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Notice krb5-auth-dialog is optional&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Assuming you installed the KDC server&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;yum -y install krb5-server krb5-libs krb5-auth-dialog&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Assuming you installed the KDC clients&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;yum -y install  krb5-auth-dialog krb5-workstation &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Your &lt;B&gt;/etc/krb5.conf&lt;/B&gt; looks like below  and copied to all the hosts in the cluster &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;[logging]
 default = FILE:/var/log/krb5libs.log
 kdc = FILE:/var/log/krb5kdc.log
 admin_server = FILE:/var/log/kadmind.log
[libdefaults]
 default_realm = EXAMPLE.COM
 dns_lookup_realm = false
 dns_lookup_kdc = false
 ticket_lifetime = 24h
 renew_lifetime = 7d
 forwardable = true
[realms]
 EXAMPLE.COM = {
  kdc = kdc.examplecom
  admin_server = kdc.examplecom
 }
[domain_realm]
 .example.com = EXAMPLE.COM
 example.com = EXAMPLE.COM&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Your &lt;STRONG&gt;kdc.conf &lt;/STRONG&gt;should resemble this &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;[kdcdefaults]
 kdc_ports = 88
 kdc_tcp_ports = 88
[realms]
 EXAMPLE.COM = {
  #master_key_type = aes256-cts
  acl_file = /var/kerberos/krb5kdc/kadm5.acl
  dict_file = /usr/share/dict/words
  admin_keytab = /var/kerberos/krb5kdc/kadm5.keytab
  supported_enctypes = aes256-cts:normal aes128-cts:normal des3-hmac-sha1:normal arcfour-hmac:normal des-hmac-sha1:normal des-cbc-md5:normal des-cbc-crc:normal
 }&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You kadm5.acl in&lt;STRONG&gt; /var/kerberos/krb5kdc&lt;/STRONG&gt; as below&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;*/admin@EAMPLE.COM      *&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Can you create an admin principal as suit&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# kadmin.local -q "addprinc admin/admin" 
Authenticating as principal admin/admin@EXAMPLE.COM with password. 
WARNING: no policy specified for admin/admin@EXAMPLE.COM; defaulting to no policy 
Enter password for principal "admin/admin@EXAMPLE.COM": 
Re-enter password for principal "admin/admin@EXAMPLE.COM": 
Principal "admin/admin@EXAMPLE.COM" created.&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;This is the principal you should use for the Ambari Kerberos,make sure you started the appropriate daemons  below &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Centos7/RHEL7&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# systemctl start krb5kdc 
# systemctl start kadmin&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Centos6/RHEL6&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# systemctl start krb5kdc 
# systemctl start kadmin&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;All should be fine  please let me know &lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Sep 2017 17:29:36 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2017-09-21T17:29:36Z</dc:date>
    <item>
      <title>Kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-issue/m-p/191655#M68406</link>
      <description>&lt;P&gt;Hi I have is install HDP 2.5 and ambari 2.4. I have configured kdc server and then try to enable kerberos but my /etc/krb5.conf file getting change. And it gets failed with error&lt;/P&gt;&lt;P&gt; Command:
[/usr/bin/kadmin, -s, abc.example.com, -p, root/admin@example.COM, -r, example.COM, -q, get_principal root/admin@example.COM]&lt;/P&gt;&lt;P&gt;  ExitCode: 1&lt;/P&gt;&lt;P&gt;  STDOUT:
Authenticating as principal root/admin@example.COM with
password.&lt;/P&gt;&lt;P&gt;Password for
root/admin@example.COM:&lt;/P&gt;&lt;P&gt;  STDERR: kadmin:
Cannot read password while initializing kadmin interface&lt;/P&gt;&lt;P&gt;21 Sep 2017 12:21:16,295
ERROR [ambari-client-thread-32897] KerberosHelperImpl:1861 - Cannot validate
credentials: org.apache.ambari.server.AmbariException: Unexpected error
condition executing the kadmin command&lt;/P&gt;&lt;P&gt;21 Sep 2017 12:21:16,296
ERROR [ambari-client-thread-32897] AbstractResourceProvider:285 - Caught
AmbariException when creating a resource&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 15:04:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-issue/m-p/191655#M68406</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-09-21T15:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-issue/m-p/191656#M68407</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/1897/ashneesharma88.html"&gt;Ashnee Sharma&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Notice krb5-auth-dialog is optional&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Assuming you installed the KDC server&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;yum -y install krb5-server krb5-libs krb5-auth-dialog&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Assuming you installed the KDC clients&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;yum -y install  krb5-auth-dialog krb5-workstation &lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Your &lt;B&gt;/etc/krb5.conf&lt;/B&gt; looks like below  and copied to all the hosts in the cluster &lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;[logging]
 default = FILE:/var/log/krb5libs.log
 kdc = FILE:/var/log/krb5kdc.log
 admin_server = FILE:/var/log/kadmind.log
[libdefaults]
 default_realm = EXAMPLE.COM
 dns_lookup_realm = false
 dns_lookup_kdc = false
 ticket_lifetime = 24h
 renew_lifetime = 7d
 forwardable = true
[realms]
 EXAMPLE.COM = {
  kdc = kdc.examplecom
  admin_server = kdc.examplecom
 }
[domain_realm]
 .example.com = EXAMPLE.COM
 example.com = EXAMPLE.COM&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Your &lt;STRONG&gt;kdc.conf &lt;/STRONG&gt;should resemble this &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;[kdcdefaults]
 kdc_ports = 88
 kdc_tcp_ports = 88
[realms]
 EXAMPLE.COM = {
  #master_key_type = aes256-cts
  acl_file = /var/kerberos/krb5kdc/kadm5.acl
  dict_file = /usr/share/dict/words
  admin_keytab = /var/kerberos/krb5kdc/kadm5.keytab
  supported_enctypes = aes256-cts:normal aes128-cts:normal des3-hmac-sha1:normal arcfour-hmac:normal des-hmac-sha1:normal des-cbc-md5:normal des-cbc-crc:normal
 }&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You kadm5.acl in&lt;STRONG&gt; /var/kerberos/krb5kdc&lt;/STRONG&gt; as below&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;*/admin@EAMPLE.COM      *&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Can you create an admin principal as suit&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# kadmin.local -q "addprinc admin/admin" 
Authenticating as principal admin/admin@EXAMPLE.COM with password. 
WARNING: no policy specified for admin/admin@EXAMPLE.COM; defaulting to no policy 
Enter password for principal "admin/admin@EXAMPLE.COM": 
Re-enter password for principal "admin/admin@EXAMPLE.COM": 
Principal "admin/admin@EXAMPLE.COM" created.&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;This is the principal you should use for the Ambari Kerberos,make sure you started the appropriate daemons  below &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Centos7/RHEL7&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# systemctl start krb5kdc 
# systemctl start kadmin&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Centos6/RHEL6&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# systemctl start krb5kdc 
# systemctl start kadmin&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;All should be fine  please let me know &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 17:29:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-issue/m-p/191656#M68407</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-09-21T17:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-issue/m-p/191657#M68408</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1271/sheltong.html"&gt;Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have done same steps and got same error.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Sep 2017 22:16:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-issue/m-p/191657#M68408</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-09-21T22:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Kerberos issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-issue/m-p/191658#M68409</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;P&gt;My issue is resolved. I have configure KDC server on different machine. Thanks for the help...!!!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2017 19:47:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Kerberos-issue/m-p/191658#M68409</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2017-10-03T19:47:16Z</dc:date>
    </item>
  </channel>
</rss>

