开发者

Getting all the members of a group in Active Directory via C#

Hey guys, I tried searching online and mostly on here but most answers don't satisfy. I want to get all the users that have a certain group in their memberOf attribute, but can't seem to LDAP query them properly. The string 开发者_开发问答I'm using for the filter is "(&(objectClass=user)(memberOf=cn=,ou=,dc=, dc=))" - which gets no results what so ever. If I remove the 'memberof' clause it finds all the users.

My first conclusion is that multi-valued attributes such as memberof cannot be simply queried like so. What is an alternative solution?

Thanks.


Have you tried doing it one of these ways? This one looks particularly useful., if you don't have 3.5, then the following may be of more help?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜