<?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: Can we automatically sync ldap users into ambari ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170664#M50066</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;@Ashnee Sharma&lt;/A&gt;&lt;P&gt;There are no drawback apart from exposing script to public. Just make sure you do not specify password as plain text in script.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2016 17:06:08 GMT</pubDate>
    <dc:creator>sshimpi</dc:creator>
    <dc:date>2016-12-28T17:06:08Z</dc:date>
    <item>
      <title>Can we automatically sync ldap users into ambari ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170660#M50062</link>
      <description>&lt;P&gt;Is there any way to auto sync ldap users for ambari ?&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2016 02:57:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170660#M50062</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2016-12-25T02:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can we automatically sync ldap users into ambari ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170661#M50063</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;@Ashnee Sharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check below and let me know if you are looking for the same -&lt;/P&gt;&lt;P&gt;Installed expect first: &lt;/P&gt;&lt;P&gt;# yum install expect -y 

(or use your Linux distribution's package manager if you're not Using CentOS or RHEL)&lt;/P&gt;&lt;P&gt;Then create and run the following expect script: &lt;/P&gt;&lt;P&gt;# cat /tmp/ambari-server-sync-ldap-unattended.sh &lt;/P&gt;&lt;PRE&gt;#!/usr/bin/expect 
set timeout 20
spawn /usr/sbin/ambari-server sync-ldap --groups=/etc/ambari-server/ambari-groups.csv
expect "Enter Ambari Admin login:" { send "admin\n" }
expect "Enter Ambari Admin password:" { send "notTheRealPasswordOfCourse\n" }
interact
&lt;/PRE&gt;&lt;P&gt;If customer wants password to NOT be in plain text, ask them to look at something like Ansible which handles decrypting passwords from a file.&lt;/P&gt;&lt;P&gt;Let me know if that works for you.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2016 02:59:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170661#M50063</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-12-25T02:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Can we automatically sync ldap users into ambari ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170662#M50064</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1897/ashneesharma88.html"&gt;@Ashnee Sharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1897/ashneesharma88.html"&gt;&lt;/A&gt;Additional to what Sagar provided, be aware that in case of Oracle Directory Server Enterprise 11g (there are a few more LDAPs with the same issue), when synchronizing LDAP users/groups, Ambari uses LDAP results paging control to sync large number of LDAP objects. If that is your case, then set &lt;CODE&gt;authentication.ldap.pagination.enabled&lt;/CODE&gt; property  to false in the&lt;CODE&gt;/etc/ambari-server/conf/ambari-properties&lt;/CODE&gt; file to disable result paging controls. This will limit the maximum number of entities that can be imported at any given time to the maximum result limit of the LDAP server. To work around this, import sets of users or groups using the -users and -groups as Sagar already included in his commands.&lt;/P&gt;&lt;P&gt;Also, when syncing ldap, local user accounts with matching username will switch to LDAP type, which means their authentication will be against the external LDAP and not against the Local Ambari user store. Be advised!&lt;/P&gt;&lt;P&gt;LDAP sync only syncs up-to-1000 users. If your LDAP contains over 1000 users and you plan to import over 1000 users, you must use the --users option when syncing and specify a filtered list of users to perform import in batches. This is another thing to be aware.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Dec 2016 04:50:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170662#M50064</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-12-25T04:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can we automatically sync ldap users into ambari ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170663#M50065</link>
      <description>&lt;P&gt;I tried the script and its working in my test env. Is it feasible to deploy in prod ?&lt;/P&gt;&lt;P&gt;Any disadvantages?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 16:50:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170663#M50065</guid>
      <dc:creator>ashneesharma88</dc:creator>
      <dc:date>2016-12-28T16:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can we automatically sync ldap users into ambari ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170664#M50066</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;&lt;/A&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1897/ashneesharma88.html" nodeid="1897"&gt;@Ashnee Sharma&lt;/A&gt;&lt;P&gt;There are no drawback apart from exposing script to public. Just make sure you do not specify password as plain text in script.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2016 17:06:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170664#M50066</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-12-28T17:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can we automatically sync ldap users into ambari ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170665#M50067</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/1897/ashneesharma88.html"&gt;@Ashnee Sharma &lt;/A&gt;&lt;/P&gt;&lt;P&gt;There was an issue and for that you submitted a question separately. It is good to document here as well, for other sake that may be encounter a similar problem. Please post it.&lt;/P&gt;&lt;P&gt;I found it. Based on the original response, you encountered an issue, then you asked this question: &lt;A href="https://community.hortonworks.com/questions/74245/how-to-disable-pagination-for-ambari-ldap.html"&gt;https://community.hortonworks.com/questions/74245/how-to-disable-pagination-for-ambari-ldap.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 00:28:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-automatically-sync-ldap-users-into-ambari/m-p/170665#M50067</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-12-29T00:28:30Z</dc:date>
    </item>
  </channel>
</rss>

