10

What would the correct syntax be, using ldapsearch, to return all Groups\OU's and their nested Groups\OU's in an AD domain? I am trying to query a Windows AD DC from a Linux Box and need to have this result returned to the Linux machine.

Cœur
  • 37,241
  • 25
  • 195
  • 267
chumley
  • 173
  • 2
  • 4
  • 7

1 Answers1

14

All groups in the DOMAIN would be:

(objectClass=group)

All groups and OUs would be:

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

Not sure what Groups\OU's implies.

-jim

jwilleke
  • 10,467
  • 1
  • 30
  • 51