C#
using System.DirectoryServices.Protocols;<o:p></o:p>
I am failing to retrieve the group membership of all AD users when I use a DirSyncRequestControl (with or without cookie, null or previously stored).
The group membership is returned fine when I DON'T add the DirSyncRequestControl to the search request.
string[] attribs =newstring[4];
attribs[0] ="SAMAccountName";
attribs[1] ="name";
attribs[2] ="memberOf";
attribs[3] ="description";
SearchRequest request =newSearchRequest(string.Format("DC=my,DC=domain"),"(objectcategory=person)", SearchScope.Subtree, attribs);
Searching the internet reveals little on this subject.
Is the memberOf attribute not replicated when using DirSync?
Is it a permission thing? I am Domain Admin for the target domain.
Any help appreciated.