Question : LDAP "memberOf" queries

For the sake of this inquiry, I'm currently executing LDAP queries in ADUC.

This works, and returns most or all staff:
(&(objectCategory=user)(memberOf=*))
I can pick random staff from the resultset, open their "member of" lists and confirm they're part of one or many groups each.

On the other hand, none of these produce any results:
(&(objectCategory=user)(memberOf=mygroup))
(&(objectCategory=user)(memberOf=A*))
(&(objectCategory=user)(memberOf=B*))
(&(objectCategory=user)(memberOf=C*))...

What am I doing wrong?

Thx



Answer : LDAP "memberOf" queries

Hi,

Well, "XYZ.NU.CA/Baker Lake/Groups/BKMISW" should be converted some thing like this:

(&(objectCategory=user)(memberOf=CN=BKMISW,OU=Baker Lake,DC=XYZ,DC=NU,DC=CA))

I may be missing which one is OU and which is Group, so you can find syntax at http://msdn.microsoft.com/en-us/library/aa366101(VS.85).aspx and for more information see this: http://www.computerperformance.co.uk/Logon/LDAP_attributes_active_directory.htm

Regards,
Faraz H. Khan
Random Solutions  
 
programming4us programming4us