12 April,16 at 11:13 AM
Applies to: All versions of Centrify DirectControl
Question:
Is there any way to query the membership of an AD group which has greater than 1500 members using /usr/share/centrifydc/bin/ldapsearch?
Answer:
By default, Active Directory limits the value that can be retrieved from a single query to 1500. To extract beyond this limit, it is necessary to specify a value range in the form of "member;range=low-high" such as "member,range=100-499". An query sample for more than 1500 members will look similar to below ldapsearch command:
/usr/share/centrifydc/bin/ldapsearch -LLL -H ldap://domain.local -m -b 'CN=adgroup,OU=test.ou,OU=test,DC=domain,DC=local' '(objectclass=*)' 'member;range=0-50'
Without specifying the value range, the result will only display up to 1499.
More information regarding the range retrieval value can be found at Microsoft MSDN library http://msdn.microsoft.com/en-us/library/cc223242(PROT.10).aspx.
(Link provided as a courtesy)