ldap search for members of a group
I am trying to write a search to return all members of a specific group. However, the filter I am using, only returns the group information, not the member of that group. Can someone help me with the correct format? TIA.
ldapsearch -x -LLL -b "dc=myhost,dc=mydomain,dc=com" cn=rds
I also tried:
ldapsearch -x -LLL -b "dc=myhost,dc=mydomain,dc=com" memberOf=cn=rds
which returned nothing.