I have no direct access to LDAP, but I am a user in LDAP and can make queries using ldapsearch. How can I query LDAP to get all LDAP groups for a particular user? Also is there an easy way to get LDAP group names from the gid attribute? I

  • 1
    This depends on the used LDAP. ActiveDirectory has bi-directional memberOf-style group memberships, while OpenLDAP has regular member-style group memberships. The basic difference: in one (member) case you'll have to query the groups for their members and then filter those out, where the desired user is a member. The other: the user has a memberOf attribute, which lists all groups the user is a member of. – Elias Probst Dec 5 '13 at 19:07
  • This is Sun LDAP – Gregg Leventhal Dec 5 '13 at 19:15
  • relevant note from stackoverflow.com/questions/9722889 -- "You can interrogate the root DN of any LDAP server to find out whether it supports the feature." – sendmoreinfo Dec 10 '17 at 12:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.