clifgriffin/simple-ldap-login — pull request #15 by jplitza (2014-11-04 09:26:29+00:00)
Title: Support groups with memberUid instead of memberOf

There are two ways to represent groups in LDAP: One adds the memberOf attribute to the users of the group, the other adds the memberUid attribute to the group. While combining both is possible, in our setup we only use memberUid, which wasn't supported by Simple-LDAP-Login. This patch adds support.

This isn't the cleanest solution, especially the preg_replace() that kills off any prefixed ou= annoys me, but contrary to what the webinterface says, we had to use ou=People in our base_dn, because that's where our user accounts live (and the plugin tries to authenticate with uid=$username,$base_dn).