<?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: Commands to add HTTP principals to spnego keytab file for AD integrated Kerberose cluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133404#M51826</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/14265/parepallykiran.html" nodeid="14265"&gt;@Saikiran Parepally&lt;/A&gt;&lt;P&gt;I think Ambari uses APIs for creating principals. Instead of going for a complex way, Easiest way is - you can use 'ktpass' to extract principals in keytab.&lt;/P&gt;&lt;P&gt;Please see - &lt;A href="https://technet.microsoft.com/en-us/library/cc753771(v=ws.11).aspx" target="_blank"&gt;https://technet.microsoft.com/en-us/library/cc753771(v=ws.11).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps!&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 18:02:18 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2017-01-18T18:02:18Z</dc:date>
    <item>
      <title>Commands to add HTTP principals to spnego keytab file for AD integrated Kerberose cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133403#M51825</link>
      <description>&lt;P&gt;I am trying to enable HA for Ranger Admin and for that need to add all of the Ranger Admin Hosts HTTP principals and LoadBalancer principal to the same spnego keytab file. Need instructions on creating AD user (hint to script which Ambari uses to create new principals and keytab files) and add principals into the single keytab file. &lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 09:58:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133403#M51825</guid>
      <dc:creator>sparepally</dc:creator>
      <dc:date>2017-01-18T09:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Commands to add HTTP principals to spnego keytab file for AD integrated Kerberose cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133404#M51826</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14265/parepallykiran.html" nodeid="14265"&gt;@Saikiran Parepally&lt;/A&gt;&lt;P&gt;I think Ambari uses APIs for creating principals. Instead of going for a complex way, Easiest way is - you can use 'ktpass' to extract principals in keytab.&lt;/P&gt;&lt;P&gt;Please see - &lt;A href="https://technet.microsoft.com/en-us/library/cc753771(v=ws.11).aspx" target="_blank"&gt;https://technet.microsoft.com/en-us/library/cc753771(v=ws.11).aspx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps!&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 18:02:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133404#M51826</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2017-01-18T18:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Commands to add HTTP principals to spnego keytab file for AD integrated Kerberose cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133405#M51827</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://community.cloudera.com/users/14265/parepallykiran.html" nodeid="14265"&gt;@Saikiran Parepally&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;To add to &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;'s answer, you can find the instruction to create AD user and keytab, here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/48973/how-to-setup-kerberos-keytab-for-hadoop-services-o.html"&gt;https://community.hortonworks.com/content/supportkb/48973/how-to-setup-kerberos-keytab-for-hadoop-services-o.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Once you have generated keytabs for all the required principals, you can copy them to Ranger Admin node(s) and use "ktutil" command from Kerberos package to merge all keytabs into one. Like this:&lt;/P&gt;&lt;PRE&gt;# ktutil
ktutil:  rkt /tmp/service1.keytab
ktutil:  rkt /tmp/service2.keytab
ktutil:  rkt /tmp/service3.keytab
ktutil:  wkt /tmp/combined.keytab
ktutil:  exit&lt;/PRE&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 18:59:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133405#M51827</guid>
      <dc:creator>VR46</dc:creator>
      <dc:date>2017-01-18T18:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Commands to add HTTP principals to spnego keytab file for AD integrated Kerberose cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133406#M51828</link>
      <description>&lt;P&gt;I believe that a combination of both &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/740/vrathor.html" nodeid="740"&gt;@Vipin Rathor&lt;/A&gt; answers are correct.  Combining them and assuming the SPNEGO principals (HTTP/&amp;lt;host&amp;gt;) for the Ranger hosts already exist in the Active Directory:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create the account in the Active Directory for the load balancer host (HTTP/&amp;lt;loadbalancer FQDN&amp;gt;@&amp;lt;realm&amp;gt;)&lt;/LI&gt;&lt;LI&gt;Export the keytab file for the created account&lt;/LI&gt;&lt;LI&gt;Combine the relevant keytab file into a single file using ktutil&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Do not attempt to export new keytab file for the previously existing SPNEGO principals&lt;/STRONG&gt; as this will change the password on the account and invalidate the existing (relevant) keytab files in the cluster. You should find the needed keytab file from the appropriate hosts at /etc/security/keytabs/spnego.service.keytab. &lt;/P&gt;&lt;P&gt;Creating the new account in the Active Directory can be done by logging into the Active Directory and using the new user wizard - right mouse click on the LDAP container (aka the "OU") and select "new" and then select  "user" from the menus.  You can also create a new user in the Active Directory by using LDAP commands from the OpenLDAP packages (ldapadd), but you will need to create a unicode password and an LDIF file - I believe there will be a article on HCC about this in the rather near future courtesy of &lt;A rel="user" href="https://community.cloudera.com/users/509/dvillarreal.html" nodeid="509"&gt;@dvillarreal&lt;/A&gt; with a little help from me. &lt;/P&gt;&lt;P&gt;Creating the keytab file can be done using the ktpass utility on the Active Directory host; or, since you might know the password for the account, you can use ktutil to build one on a Linux host. &lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 23:28:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133406#M51828</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2017-01-18T23:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Commands to add HTTP principals to spnego keytab file for AD integrated Kerberose cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133407#M51829</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/322/rlevas.html" nodeid="322"&gt;@Robert Levas&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;  &lt;A rel="user" href="https://community.cloudera.com/users/740/vrathor.html" nodeid="740"&gt;@Vipin Rathor&lt;/A&gt; ... Thanks a lot for your responses. Initially our AD team was hesitant to create principals for LoadBalancer and thats the reason why I was looking at Ambari scripts to create that. Now they are convinced and created principal for loadbalancer in AD. I followed ktutil steps mentioned by &lt;A rel="user" href="https://community.cloudera.com/users/740/vrathor.html" nodeid="740"&gt;@Vipin Rathor&lt;/A&gt; to merge keytabs as suggested by &lt;A rel="user" href="https://community.cloudera.com/users/322/rlevas.html" nodeid="322"&gt;@Robert Levas&lt;/A&gt;. This has solved the issue and I am successfully able to sync policies. &lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 00:52:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133407#M51829</guid>
      <dc:creator>sparepally</dc:creator>
      <dc:date>2017-01-19T00:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Commands to add HTTP principals to spnego keytab file for AD integrated Kerberose cluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133408#M51830</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/14265/parepallykiran.html" nodeid="14265"&gt;@Saikiran Parepally&lt;/A&gt;&lt;P&gt;Article created for future reference.  &lt;A href="https://community.hortonworks.com/content/kbentry/82544/how-to-create-ad-principal-accounts-using-openldap.html"&gt;https://community.hortonworks.com/content/kbentry/82544/how-to-create-ad-principal-accounts-using-openldap.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 06:17:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Commands-to-add-HTTP-principals-to-spnego-keytab-file-for-AD/m-p/133408#M51830</guid>
      <dc:creator>dvillarreal</dc:creator>
      <dc:date>2017-02-10T06:17:50Z</dc:date>
    </item>
  </channel>
</rss>

