3 # author: damien.nozay@gmail.com
6 # Provides a space-separated list of groups that the user is a member of.
8 # see http://gitolite.com/gitolite/conf.html#getting-user-group-info-from-ldap
9 # GROUPLIST_PGM => /path/to/ldap_groups.sh
13 # this relies on openldap / pam_ldap to be configured properly on your
14 # system. my system allows anonymous search.
16 ldapsearch
-x -LLL "(&(objectClass=posixGroup)(memberUid=${username}))" cn \