Page 1 of 1
Active Directory user import
Posted: Wed Dec 09, 2015 6:56 am
by ChathamDaleJ
When I go to import users from AD, I get a partial list of AD users. It appears it only picks up 500 (I'm guessing) users. There is no way to get the next page nor have I found a way to increase the number.
Re: Active Directory user import
Posted: Wed Dec 09, 2015 3:38 pm
by ssax
This is likely a limit on the AD side, please login to your domain controller and run these commands to validate:
Code: Select all
ntdsutil.exe [enter]
ldap policies [enter]
connections [enter]
connect to server dc1.contoso.local [enter]
q [enter]
show values [enter]
The part that we are interested in is the MaxPageSize settings:
Example output:
Code: Select all
Policy Current(New)
MaxPoolThreads 4
MaxDatagramRecv 4096
MaxReceiveBuffer 10485760
InitRecvTimeout 120
MaxConnections 5000
MaxConnIdleTime 900
MaxPageSize 1000
MaxQueryDuration 120
MaxTempTableSize 10000
MaxResultSetSize 262144
MinResultSets 0
MaxResultSetsPerConn 0
MaxNotificationPerConn 5
MaxValRange 1500
Mine was set to 1000 so to change it, I ran:
Code: Select all
set maxpagesize to 5000 [enter]
show values [enter]
commit changes [enter]
q [enter]
Example output:
Code: Select all
Policy Current(New)
MaxPoolThreads 4
MaxDatagramRecv 4096
MaxReceiveBuffer 10485760
InitRecvTimeout 120
MaxConnections 5000
MaxConnIdleTime 900
MaxPageSize 5000
MaxQueryDuration 120
MaxTempTableSize 10000
MaxResultSetSize 262144
MinResultSets 0
MaxResultSetsPerConn 0
MaxNotificationPerConn 5
MaxValRange 1500