<?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 configuring secondary kdc in ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configuring-secondary-kdc-in-ambari/m-p/104732#M33428</link>
    <description>&lt;P&gt;I have set up a primary and secondary KDC manually. I am not using any AD.&lt;/P&gt;&lt;P&gt;How do i specify the secondary in ambari. if it is just a primary, i can specify in ambari directly. any example or thoughts would be great.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jun 2016 04:10:28 GMT</pubDate>
    <dc:creator>arunpoy</dc:creator>
    <dc:date>2016-06-30T04:10:28Z</dc:date>
    <item>
      <title>configuring secondary kdc in ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configuring-secondary-kdc-in-ambari/m-p/104732#M33428</link>
      <description>&lt;P&gt;I have set up a primary and secondary KDC manually. I am not using any AD.&lt;/P&gt;&lt;P&gt;How do i specify the secondary in ambari. if it is just a primary, i can specify in ambari directly. any example or thoughts would be great.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 04:10:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configuring-secondary-kdc-in-ambari/m-p/104732#M33428</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2016-06-30T04:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: configuring secondary kdc in ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configuring-secondary-kdc-in-ambari/m-p/104733#M33429</link>
      <description>&lt;P&gt;
	&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUNKUMAR RAMASAMY&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Assume by "secondary KDC", you either mean in a &lt;EM&gt;master/slave relationship&lt;/EM&gt; or a &lt;EM&gt;trust relationship&lt;/EM&gt; (where each KDC hosts its own realm)&lt;/P&gt;&lt;P&gt;
	If this is a &lt;STRONG&gt;master/slave relationship&lt;/STRONG&gt;, you need to edit that krb5.conf template (under the Advanced krb5-conf tab on the Kerberos service config page) to specify the additional KDC host and (optionally) the master KDC:&lt;/P&gt;
&lt;PRE&gt;[libdefaults]
  renew_lifetime = 7d
  forwardable = true
  default_realm = {{realm}}
  ticket_lifetime = 24h
  dns_lookup_realm = false
  dns_lookup_kdc = false
  #default_tgs_enctypes = {{encryption_types}}
  #default_tkt_enctypes = {{encryption_types}}
{% if domains %}
[domain_realm]
{% for domain in domains.split(',') %}
  {{domain}} = {{realm}}
{% endfor %}
{% endif %}
[logging]
  default = FILE:/var/log/krb5kdc.log
  admin_server = FILE:/var/log/kadmind.log
  kdc = FILE:/var/log/krb5kdc.log
[realms]
  {{realm}} = {
    admin_server = {{admin_server_host|default(kdc_host, True)}}
    kdc = fqdn.slave.kdc    
    kdc = {{kdc_host}}
    master_kdc = {{kdc_host}}
  }
{# Append additional realm declarations below #}
&lt;/PRE&gt;&lt;P&gt;
	Note the addition of the &lt;STRONG&gt;kdc&lt;/STRONG&gt; and &lt;STRONG&gt;master_kdc&lt;/STRONG&gt; entries in the realm definition.  For the additional &lt;STRONG&gt;kdc&lt;/STRONG&gt; entry, "fqdn.slave.kdc"  should be change to the FQDN (and optionally port) of the slave KDC. &lt;/P&gt;&lt;P&gt;
	If this is a &lt;B&gt;trust relationship&lt;/B&gt;, then you need to add the additional realm to the krb5.conf template (under the Advanced krb5-conf tab on the Kerberos service config page).  &lt;/P&gt;&lt;PRE&gt;[libdefaults]
  renew_lifetime = 7d
  forwardable = true
  default_realm = {{realm}}
  ticket_lifetime = 24h
  dns_lookup_realm = false
  dns_lookup_kdc = false
  #default_tgs_enctypes = {{encryption_types}}
  #default_tkt_enctypes = {{encryption_types}}

{% if domains %}
[domain_realm]
{% for domain in domains.split(',') %}
  {{domain}} = {{realm}}
{% endfor %}
{% endif %}

[logging]
  default = FILE:/var/log/krb5kdc.log
  admin_server = FILE:/var/log/kadmind.log
  kdc = FILE:/var/log/krb5kdc.log

[realms]
  {{realm}} = {
    admin_server = {{admin_server_host|default(kdc_host, True)}}
    kdc = {{kdc_host}}
  }

{# Append additional realm declarations below #}
  ADDITONAL.REALM = {
    admin_server = FQDN.admin.server
    kdc = fqdn.kdc    
  }

&lt;/PRE&gt;&lt;P&gt;Note the additional realm, named "ADDITIONAL.REALM", which should be changed to the actual realm name.  Also the &lt;STRONG&gt;admin_server&lt;/STRONG&gt; and &lt;STRONG&gt;kdc&lt;/STRONG&gt; values need to set appropriately. &lt;/P&gt;&lt;P&gt;You will also want to add the additional realm to the "Additional Realms" value in the Kerberos admin page so that an entry will be created in the auto-generated &lt;STRONG&gt;auth-to-local&lt;/STRONG&gt; rule sets.  By editing the data on this page and saving it, I believe the configurations will be updated and you may have to restart some services. If not, you should click on the "Regenerate Keytabs" button and the configurations will be updated along with the new keytab files. &lt;/P&gt;</description>
      <pubDate>Thu, 30 Jun 2016 06:03:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configuring-secondary-kdc-in-ambari/m-p/104733#M33429</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2016-06-30T06:03:17Z</dc:date>
    </item>
  </channel>
</rss>

