I tried many requests, but this gets my OU:
(&(objectCategory=organizationalUnit)(Name=MyOU)) (I just got here here)
I tried using (&(objectCategory=organizationalUnit)(objectClass=group)(Name=MyOU)) but could not.
In addition, (&(objectCategory=Group)(cn=MyOU,dc=mytop,dc=mysuffix)) and failed.
I am trying to get groups inside OU. I searched a lot, but could not think of. How to find groups in the department? I have a program that will print groups. I just can't get the request correctly.
Thanks for any help.
active-directory ldap domaincontroller
johnny
source share