Active Directory user import

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ChathamDaleJ
Posts: 55
Joined: Tue Jul 02, 2013 10:44 am

Active Directory user import

Post 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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Active Directory user import

Post 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
Locked