How to Set the MaxActiveQueries Attribute

 

The LDAP administrative limits balance the Active Directory’s operational capabilities and its performance. These limits prevent specific operations from adversely affecting the performance of the server. Increasing this setting beyond its default value could have an adverse effect on your Active Directory infrastructure.

The MaxActiveQueries value of the LDAPAdminLimits attribute controls the maximum number of simultaneous LDAP queries for the default query policy. By default, a limit of 20 active queries is imposed. If this limit is reached, Active Directory returns "LDAP_ADMIN_LIMIT_EXCEEDED" and does not process additional LDAP queries.

Note

MaxActiveQueries only applies to directory servers running Windows 2000 Server. MaxActiveQueries cannot be set on directory servers running Windows Server 2003.

To set MaxActiveQueries, you must use Ntdsutil.exe. Ntdsutil.exe is located in the Support\Tools folder on the Windows 2000 Server installation CD-ROM. By default, Ntdsutil.exe is installed in the System32 folder.

Procedure

To start Ntdsutil.exe

  1. Click Start, and then click Run.

  2. In the Open text box, type ntdsutil, and then press Enter. To view help at any time, type ? at the command prompt.

To view policy settings with Ntdsutil.exe

  1. At the Ntdsutil.exe command prompt, type LDAP policies, and then press Enter.

  2. At the LDAP policy command prompt, type connections, and then press Enter.

  3. At the server connection command prompt, type connect to server DNS name of server, and then press Enter. You want to connect to the server that you are currently working with.

  4. At the server connection command prompt, type q, and then press Enter to return to the previous menu.

  5. At the LDAP policy command prompt, type Show Values, and then press Enter.

    A display of the policies as they exist appears.

Note This procedure shows only the Default Domain Policy settings. If you apply your own policy setting, you cannot see it.

To change policy settings with Ntdsutil.exe

  1. At the Ntdsutil.exe command prompt, type LDAP policies, and then press Enter.

  2. At the LDAP policy command prompt, type Set MaxActiveQueries to 40, and then press Enter.

    You can use the Show Values command to verify your changes.

  3. To save the changes, use Commit Changes.

  4. When you finish, type q, and then press Enter.

  5. To quit Ntdsutil.exe, at the command prompt, type q, and then press Enter.

For More Information

For more information about configuring LDAP policies, see the Microsoft Knowledge Base article 315071, "How to view and set lightweight directory access protocol policies by using Ntdsutil.exe in Windows 2000," (https://go.microsoft.com/fwlink/?LinkId=3052&kbid=315071).