Search This Blog

Monday, January 16, 2017

LDAP limits for .net queries

When using LDAP queries in .NET or Java, do not forget about limits:

C:\Users\Administrator>ntdsutil
ntdsutil: ldap policies
ldap policy: connections
server connections: connect to server dc
Binding to srvdc ...
Connected to srvdc using credentials of locally logged on user.
server connections: q
ldap policy: show value

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
ThreadMemoryLimit                       0
SystemMemoryLimitPercent                        0

ldap policy: set maxpagesize to 5000
ldap policy: commit changes
ldap policy: q
ntdsutil: q

No comments: