$wgLDAPGroupsUseMemberOf doesn't work with memberof overlay
Hi,
I'm using OpenLDAP's memberof overlay which automatically maintains reverse group memberships. Unfortunately, that doesn't work with the plugin (version 1.2c) because memberOf is an operational attribute and thus must be requested explicitly. A simple patch is to replace line 1087 (function getUserInfo()) of LdapAuthentication.php with the following one:
$entry = @ldap_read( $this->ldapconn, $this->userdn, "objectclass=*", array('*', 'memberOf') );
Could you integrate this patch to the trunk if it looks reasonable enough?
Thanks.
Is this a non-active directory memberof directive? I haven't tested those yet :). Thanks for the patch, I'll add it to the next release.
Hi again, sorry about that late reply. This is the openldap memberof directive. Its documentation is available at http://www.openldap.org/doc/admin24/overlays.html#Reverse%20Group%20Membership%20Maintenance . Are you still planning to include the patch to the next release?
Thanks, Jean-Gui