Retrieve all groups for specific member in openldap

Moses Feinstein December 3, 2020

in openldap I have two groups where a user is member of both.

I need to to able to query this user and find out all the groups the user is memer of

 

When i run this filter, it gives me the following results, however i can't seem to figure out how to get all groups a specific user is member of:

 

(&(objectClass=groupOfNames)(cn=testgroup))

 

# testgroup, groups, example.org
dn: cn=testgroup,ou=groups,dc=example,dc=org
objectClass: groupOfNames
objectClass: top
member: uid=awong,ou=people,dc=example,dc=org
member: uid=lkennedy,ou=people,dc=example,dc=org
cn: testgroup

 

1 answer

0 votes
mogavenasan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 3, 2021

Hi @Moses Feinstein ,

Your question doesn't seem to be related to Jira, it would be also helpful for you if you can reach out to the OpenLDAP forum as well. I got this answer from a different forum:

(&(group-name=*)(uid=awong))

I hope that this helps.

Thanks,
Moga

Suggest an answer

Log in or Sign up to answer