LKBEN10683: Howto set the Ldap search limit for active directory
Symptom
You need a bigger search limit for your queries
Cause
The number of records has been limited by default
Solution
To set the values in active directory you need the command line tools ntdsutil wich is included with windows. Follow the following steps to change
the default values of active directory.
1. Open a command line and enter ntdsutil followed by enter
2. Enter ldap policies <Enter> You can enter a ? to see a list of available commands.
3. Enter connections <Enter>
4. Enter connect to server <servername>
5. At the server connections: prompt, enter quit <Enter>
6. Enter set maxpagesize to <size> <Enter>
7. Enter set maxqueryduration to <time> <Enter>
8. Enter show values then press the Enter key. (to verifies the new values)
9. Enter Commit Changes followed by Enter
10. Enter quit then press the Enter key to quit from “ldap policies”
11. Enter quit then press the Enter key to quit ntdsutil
Disclaimer:
The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!About the Author
Author:
- Keskon GmbH & Co. KGWim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.