<?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: Sync ldap problem in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/208041#M170001</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;My problem has been resolved ! I had to ask the client to install a AD Explorer and figured out the correct settings and not only changed the baseDn  all the group and user attributes !&lt;/P&gt;&lt;PRE&gt;authentication.ldap.baseDn=DC=hq,DC=uk,DC=com
authentication.ldap.bindAnonymously=false
authentication.ldap.dnAttribute=organizationalPerson
authentication.ldap.groupMembershipAttr=member
authentication.ldap.groupNamingAttr=cn
authentication.ldap.groupObjectClass=group
authentication.ldap.managerDn=cn=svc-hadoop-ldap,ou=Data Lake,ou=Applications,ou=Administrative,dc=hq,dc=uk,dc=com
authentication.ldap.managerPassword=/etc/ambari-server/conf/ldap-password.dat
authentication.ldap.primaryUrl=fake.uk.com:389
authentication.ldap.referral=ignore
authentication.ldap.useSSL=false
authentication.ldap.userObjectClass=organizationalPerson
authentication.ldap.usernameAttribute=sAMAccountName&lt;/PRE&gt;&lt;P&gt;This pulled out the desired users and group &lt;/P&gt;&lt;PRE&gt;ambari-server sync-ldap --groups groups.txt
Using python  /usr/bin/python
Syncing with LDAP...
Enter Ambari Admin login: admin
Enter Ambari Admin password:Syncing
specified users and groups....Completed
LDAP Sync.Summary: 
memberships: 
removed = 0 
created = 4 
users: 
updated = 0 
removed = 0 
created = 1 
groups: 
updated = 0 
removed = 0 
created = 1&lt;/PRE&gt;</description>
    <pubDate>Wed, 26 Apr 2017 19:26:18 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2017-04-26T19:26:18Z</dc:date>
    <item>
      <title>Sync ldap problem</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/208038#M169998</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/14810-ad-browser.png" target="_blank"&gt;ad-browser.png&lt;/A&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a very Bizarre situation while running sync-ldap for Ambari The group does exist in the LDAP but I get an exception ! The contents of the groups.txt is hadoop_administrators &lt;/P&gt;&lt;PRE&gt;# ambari-server sync-ldap --users users.txt --groups groups.txt 21 Apr 2017 13:38:12,563 ERROR [pool-16-thread-6] LdapSyncEventResourceProvider:457 - Caught exception running LDAP sync.
org.apache.ambari.server.AmbariException: Couldn't sync LDAP group hadoop_administrators,it doesn't exist
at org.apache.ambari.server.security.ldap.AmbariLdapDataPopulator.synchronizeLdapGroups(AmbariLdapDataPopulator.java:253)
at org.apache.ambari.server.controller.AmbariManagementControllerImpl.synchronizeLdapUsersAndGroups(AmbariManagementControllerImpl.java:4775)
at org.apache.ambari.server.controller.internal.LdapSyncEventResourceProvider.syncLdap(LdapSyncEventResourceProvider.java:487)
at org.apache.ambari.server.controller.internal.LdapSyncEventResourceProvider.processSyncEvents(LdapSyncEventResourceProvider.java:445)
at org.apache.ambari.server.controller.internal.LdapSyncEventResourceProvider.access$000(LdapSyncEventResourceProvider.java:65)
at org.apache.ambari.server.controller.internal.LdapSyncEventResourceProvider$1.run(LdapSyncEventResourceProvider.java:257)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745) &lt;/PRE&gt;&lt;P&gt;Here is my ambari.properties &lt;/P&gt;&lt;PRE&gt;authentication.ldap.alternateUserSearchEnabled=true
authentication.ldap.alternateUserSearchFilter=(&amp;amp;(userPrincipalName={0})(objectClass=person))
authentication.ldap.baseDn=OU=Users,OU=Enterprise,DC=hq,DC=uk,DC=com
authentication.ldap.bindAnonymously=false
authentication.ldap.dnAttribute=distinguishedName
authentication.ldap.groupMembershipAttr=member
authentication.ldap.groupNamingAttr=cn
authentication.ldap.groupObjectClass=group
authentication.ldap.managerDn=cn=svc-hadoop-ldap,OU=Data Lake,OU=Applications,OU=Administrative,DC=hq,DC=uk,DC=com
authentication.ldap.managerPassword=/etc/ambari-server/conf/ldap-password.dat
authentication.ldap.primaryUrl=mboro:389
authentication.ldap.referral=ignore
authentication.ldap.useSSL=false
authentication.ldap.userObjectClass=person
authentication.ldap.usernameAttribute=sAMAccountName &lt;/PRE&gt;&lt;P&gt;Attached is a screenshot of my AD explorer &lt;/P&gt;&lt;PRE&gt;CN=svc-hadoop-ldap,OU=Data Lake,OU=Applications,OU=Administrative,DC=hq,DC=k,DC=grp &lt;/PRE&gt;&lt;P&gt;I have only 4 users in the LDAP group hadoop_administrators,these users were synced correctly but the process couldn't pull the group. &lt;/P&gt;&lt;P&gt;I appreciate any help.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:30:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/208038#M169998</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2022-09-16T11:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sync ldap problem</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/208039#M169999</link>
      <description>&lt;P&gt;Hello &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;&lt;P&gt;Thanks for attaching the screenshot and the configuration snippet. From the Ambari configuration, the LDAP base is set to "OU=Users,OU=Enterprise,DC=hq,DC=uk,DC=com". So all the users and groups will be looked inside this.&lt;/P&gt;&lt;P&gt;From the attached screenshot, it seems like the group 'hadoop_administrators' exist outside 'OU=Users...". Please change the baseDn in Ambari configuration to a common branch from where you can see the users and groups both. That should fix this issue and your group will be found.&lt;/P&gt;&lt;P&gt;In case, a top level baseDn is giving you too many results that you don't want, you can filter them by using the correct searchFilters.&lt;/P&gt;&lt;P&gt;Hope this helps !&lt;/P&gt;</description>
      <pubDate>Sat, 22 Apr 2017 04:58:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/208039#M169999</guid>
      <dc:creator>VR46</dc:creator>
      <dc:date>2017-04-22T04:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sync ldap problem</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/208040#M170000</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/740/vrathor.html"&gt;Vipin Rathor&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sorry to get back this late I have just had acess again and I have change my baseDn to "DC=hq,DC=uk,DC=com"  but  that doesn't still pull the desired group.&lt;/P&gt;&lt;P&gt;This is making me mad &lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 02:19:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/208040#M170000</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-04-25T02:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: Sync ldap problem</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/208041#M170001</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;My problem has been resolved ! I had to ask the client to install a AD Explorer and figured out the correct settings and not only changed the baseDn  all the group and user attributes !&lt;/P&gt;&lt;PRE&gt;authentication.ldap.baseDn=DC=hq,DC=uk,DC=com
authentication.ldap.bindAnonymously=false
authentication.ldap.dnAttribute=organizationalPerson
authentication.ldap.groupMembershipAttr=member
authentication.ldap.groupNamingAttr=cn
authentication.ldap.groupObjectClass=group
authentication.ldap.managerDn=cn=svc-hadoop-ldap,ou=Data Lake,ou=Applications,ou=Administrative,dc=hq,dc=uk,dc=com
authentication.ldap.managerPassword=/etc/ambari-server/conf/ldap-password.dat
authentication.ldap.primaryUrl=fake.uk.com:389
authentication.ldap.referral=ignore
authentication.ldap.useSSL=false
authentication.ldap.userObjectClass=organizationalPerson
authentication.ldap.usernameAttribute=sAMAccountName&lt;/PRE&gt;&lt;P&gt;This pulled out the desired users and group &lt;/P&gt;&lt;PRE&gt;ambari-server sync-ldap --groups groups.txt
Using python  /usr/bin/python
Syncing with LDAP...
Enter Ambari Admin login: admin
Enter Ambari Admin password:Syncing
specified users and groups....Completed
LDAP Sync.Summary: 
memberships: 
removed = 0 
created = 4 
users: 
updated = 0 
removed = 0 
created = 1 
groups: 
updated = 0 
removed = 0 
created = 1&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Apr 2017 19:26:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/208041#M170001</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-04-26T19:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sync ldap problem</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/293214#M216549</link>
      <description>&lt;P&gt;It looks like an&amp;nbsp; OU issue. OU in AD and ranger should be the same for a group or a user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 05:24:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sync-ldap-problem/m-p/293214#M216549</guid>
      <dc:creator>sppandita85BLR</dc:creator>
      <dc:date>2020-04-03T05:24:03Z</dc:date>
    </item>
  </channel>
</rss>

