How to find user is part of how many group in OpenLDAP with ldapsearch query
Hello,
I want to get the name of groups to which users belongs in OpenLDAP.
As of now i could only find user details and group details individually.
[eedbuser@xxxx]$ ldapsearch -LLL -h xxxxxx -D uid=sai,ou=People,ou=xxxx,o=EEDIR -x -W -b o=EEDIR uid=sai
Enter LDAP Password:
dn: uid=sai,ou=People,ou=XXXXX,o=EEDIR
loginShell: /bin/bash
gidNumber: 55555
uid: sai
sn: sai
status: ACTIVE
If i want to find any group details i will use cn: GROUP NAME
But whati want here is when i search for user details at the same time i should get user info and user is part which groups also.
|