Get the list of members for LDAP group

aww-r
Tue, 06 Feb 2024 12:53:42 +0000
General Usage

I have a question in regards to LDAP, or specifically LDAP.Client package. I’d like to list all the members of specific LDAP group but I cannot make it working with the package. If I enter into bash below code I’m getting a list of members attached to the group

/usr/bin/ldapsearch -LLL -x -h ldap.mycompany.com -s sub -b 'ou=Groups,o=mycompany.com' '(cn=my_ldap_group_to_list_members)' memberuid

I’d like to replicate the same in Julia but cannot succeed, do you have any hint on how to do it in Julia?