$wgLDAPGroupsUseMemberOf doesn't work with memberof overlay

Jump to: navigation, search

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.

Jean-Gui18:04, 24 June 2010

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.

Ryan lane18:45, 24 June 2010

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

17:27, 27 September 2010

Yes. I haven't had time to work on the plugin for a while though. I can't promise when the next release will be.

Ryan lane00:50, 26 October 2010
 

I just committed this. It's in trunk.

Ryan lane04:10, 14 December 2010
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox