Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Rising Star
Created on 05-17-2017 12:55 PM
Ambari user sync will fail to map or import users when trying to pull from groups with 1,500+ members.
What we see when we use ldapsearch to query a large group is:
<snip> member;range=0-1499: CN=Elgine Metzger,OU=users,OU=test,DC=j4ck3l,DC=net member;range=0-1499: CN=Friedolf Welter,OU=users,OU=test,DC=j4ck3l,DC=net </snip>
This is seems to come from the LDAP Policy value: MaxValRange
"MaxValueRange controls the number of values that are returned on a single attribute on a single object. Default"1500 Hard Limit: 5000" -- http://ldapwiki.com/wiki/MaxValRange
To fix this:
- Go to the domain controller that we’re connecting to for the sync
- Find the file ntdsutil.exe (most likely under c:\windows\system32 or c:\winnt\system32
- Run the ntdsutil.exe
- Type “ldap policies” and enter
- Type "connections" and enter
- Type "Connect to server [YourDCName]" and enter
- Type "q" and enter
- Type "Show Values" to see the current settings
- Type “Set MaxValRange to 2500” and enter
- Type “Commit Changes” and enter
- Type “Show Values” and enter
member: CN=Elgine Metzger,OU=users,OU=test,DC=j4ck3l,DC=net member: CN=Friedolf Welter,OU=users,OU=test,DC=j4ck3l,DC=net
The group should now successfully sync with Ambari
1,798 Views