Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

C# AD SearchResponse does not contain memberOf when using DirSyncRequestControl

$
0
0

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.


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>