When trying to get all users from AD based on a role I was getting the exception:
System.DirectoryServices.Protocols.DirectoryOperationException: The size limit was exceeded
With help of this thread : LdapConnection SearchRequest throws exception for “The size limit was exceeded I tried implementing paging.
Now I am getting an exception:
The server does not support the control. The control is critical.
Any ideas on how to go about resolving it? I get a smaller list of role based users fine without paging. Thanks.
UPDATE: I found code to check if paging is supported by AD here iPlanet LDAP and C# PageResultRequestControl and I got the result that paging is supported.