You's situation can happen if the server does not support the control or if the control is not appropriate for the operation type.
- Verify Supported Controls: Ensure that the domain controller supports the control being requested. You can check the supported controls in the rootDSE.
- Check Parameters: Make sure that the parameters being passed with the control are correct and appropriate for the operation.
- Review Event Logs: Look at the event logs on the domain controller for any additional error messages or warnings that might provide more context.
Increasing MaxResultSetSize:
To increase theMaxResultSetSizeon a Domain Controller, you can use thentdsutiltool. Here are the steps:- Open Command Prompt: Run as Administrator.
- Start ntdsutil: Type
ntdsutiland press Enter. - Enter LDAP Policies: Type
ldap policiesand press Enter. - Connect to Server: Type
connectionsand press Enter, thenconnect to server <YourServerName>and press Enter. - Set MaxResultSetSize: Type
qto return to the LDAP policies menu, thenset MaxResultSetSize to <NewSize>and press Enter.