2

I'm trying to use a couple of Exchange distribution lists for access to an application (the list, due to the culture at this particular enterprise, is kept more up to date with people moving in and out than many of the security groups).

The problem here is that I can't seem to construct a filter that will retrieve list members.

Example, say the distribution list exists at

CN=\#Accounting Users,OU=DistributionLists,OU=Groups,DC=enterprise,DC=com

..one would expect to be able to retrieve its user account members with the filter syntax:

(&
  (objectCategory=Person)
  (sAMAccountName=*)
  (memberOf=CN=\#Accounting Users,OU=DistributionLists,OU=Groups,DC=enterprise,DC=com)
)

This filter as written returns an error, indicating that my "memberOf" syntax is invalid. I think it's choking on the backslash before the hash sign, even though it's explicitly shown to be there in the distinguishedName field of the group.

If I remove the backslash, the search completes, but returns nothing.

The members of the list have the usual memberOf attributes on their account objects.

What am I doing wrong here, and how do I make the search work?

1
  • I removed my answer as it wasn't complete
    – Drifter104
    Aug 13, 2015 at 10:19

1 Answer 1

3

Try this one:

(&
  (objectCategory=Person)
  (sAMAccountName=*)
  (memberOf=CN=\5C\5C#Accounting Users,OU=DistributionLists,OU=Groups,DC=enterprise,DC=com)
)

I built it with the help of Adaxes and it works on my side.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .