Hello
Thank you for posting in Microsoft Community forum!
The MaxPageSize value in LDAP Policies determines the maximum number of entries that are returned in a single search result, not considering paged results. The default value is indeed 1000.
Changing the MaxPageSize value can have implications:
- Performance Impact: Increasing this value could significantly impact the performance or operation of your Domain Controllers (DCs). This is because larger page sizes require more resources to fill, especially if many clients are performing searches simultaneously.
- Risk of Overloading DCs: If the MaxPageSize is set too high, it could potentially overload your DCs. This could happen even if your commands won’t cause it, a possible Denial of Service (DoS) attack could happen.
Instead of increasing the MaxPageSize, a recommended approach is to use paged queries for queries that could return more than 1000 entries. This method allows you to retrieve a large number of entries without the need to increase the MaxPageSize, thus mitigating the potential risks.
As for a safe maximum value, it’s hard to define one as it can depend on various factors like your server’s capabilities, network infrastructure, and specific use case. However, keeping it at the default or using paged queries is generally recommended for the reasons mentioned above.
Best Regards,
Wesley Li