Last post Jan 27, 2009 08:23 AM by zano
Jan 12, 2009 06:04 AM|zano|LINK
I am trying to get all the users in my AD using SDS.P and the PagedResultRequestControl.
When I run my code on the directory root (for example DC=contoso,DC=com), I get only one page of results (the response cookie is empty). But if I run it on any OU such as OU=EN,DC=contoso,DC=com, I get several pages with all the results.
Is there something special for the searches on the directory root ? a policy somewhere ?
Jan 27, 2009 08:23 AM|zano|LINK
I finally found the solution.
Paged search does not work on the directory root when referals chasing is enabled.
Just adding the the control SearchOptionsControl(SearchOption.DomainScope) to the request and paging works again.