Recent stood up a 3.6.4 server on W2K3 and whle the query is working fine it is only pulling the first 1000 uses which magically corresponds to the undocumented code value ldap.pagedResultsSize=1000. Adding a custom value to the config xml (ldap.pagedResultsSize=10000) does’t seem to help. Ideas? I also am not hitting the 10,000 limit as only ~3000 users.
This is an active directory limitation. AD will only return the first 1000 of a query. This is set by maxpagesize limit of ad: http://support.microsoft.com/kb/315071
Here are the steps I did to change the setting on my ADAM instance; the same should work for the full blown AD. Note that this will affect everything connecting to AD, not just Openfire.
Using (ADAM) ADSI Edit…
Connect to the “Well-known naming context” named “Configuration”
Log on to ADAM with an account that has administrative rights, i.e. is a member of the CN=Administrators,CN=Roles,DC=company,DC=com group
Adding a custom value to the config xml (ldap.pagedResultsSize=10000) does’t seem to help
Actualy I think that you have to set ldap.pagedResultsSize below 1001.
ldap.pagedResultsSize=500
It means that records will be read on chunks by 500 until end of result reached. So in your case 3000/500 = 6 pages.