Topic on Extension talk:LDAP Authentication

$wgLDAPGroupsUseMemberOf doesn't work with memberof overlay

5
193.51.208.72 (talkcontribs)

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.

Ryan lane (talkcontribs)

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.

193.51.208.72 (talkcontribs)
Ryan lane (talkcontribs)

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 lane (talkcontribs)

I just committed this. It's in trunk.

Reply to "$wgLDAPGroupsUseMemberOf doesn't work with memberof overlay"