LDAP from command line
"dc=example,dc=com"
also two OU-s are usually present:
ou=groups
for all groups and
ou=users
for all users.
All this is case insensitive.
Selecting all groups from LDAP is done using ldapsearch.
ldapsearch -x -b "ou=groups,dc=example,dc=com" -h LDAP_host
This lists all groups.