Finding the MCommunity groups someone a member of.

Summary

Determining MCommunity groups that someone else is a member of, via a command-line LDAP search.

Environment

  • MCommunity
  • LDAP
  • Linux

Description

ldapsearch -x -LLL -H ldap://ldap.umich.edu -b "ou=Groups,dc=umich,dc=edu" "(member=uid=uniqname,ou=People,dc=umich,dc=edu)" dn

 Note: Substitute the person's uniqname for uniqname in the above command. That's the only thing you need to change.

Notes

The ldapsearch command is provided by the package openldap-clients on RHEL/CentOS/Fedora. On other distributions it will be found in other packages, such as ldap-utils or openldap2-client.

100% helpful - 1 review
Print Article

Details

Article ID: 2607
Created
Fri 5/29/20 2:07 PM
Modified
Tue 12/19/23 1:02 PM