Print list of users in LDAP group with perl
Posted on 2010-08-22
I have a redhat system that uses LDAP. I have very little experience with LDAP and was trying to figure out how the groups work. I managed to retrieve list of of users with perl-ldap cm\ommands and then saw that the groups I,ve been looking for are actually also listed there.
Users have a ou=users and the groups have ou=groups.
Is there a way now to retrieve a list of users that belong to a specific group like "Students" with perl-ldap and print it to a file?