Using LDAPSEARCH to return all groups and units to the Active Directroy domain

What will be the correct syntax using ldapsearch to return all \ OU groups and their \ OU nested groups in the AD domain? I am trying to query Windows AD DC from the Linux Box and should return this result to the Linux machine.

Thanks for any help

+4
source share
1 answer

All groups in DOMAIN:

(objectClass=group) 

All groups and units must:

 (|(objectClass=organizationalUnit)(objectClass=Group)) 

Not sure what \ OU groups mean.

-Jeet

+4
source

Source: https://habr.com/ru/post/1502327/


All Articles