By user "Dimassc"
I'm migrating from the old LdapAuthentication to the new stack and it didn't work. I need a replacement for $wgLDAPGroupUseFullDN = array( "LDAP"=>false)
I need to search members in groups like this: (&(objectclass={GROUPOBJECTCLASS})({GROUPATTRIBUTE}=$username))
Instead of this this plugin is doing this search: (&(objectclass={GROUPOBJECTCLASS})({GROUPATTRIBUTE}=$userDN))
I did an ugly fix, adding this line just after $userDN is set in getUserGroup ($username ):
public function getUserGroups( $username ) { $userDN = new EscapedString( $this->ldapClient->getUserDN( $username ) ); $userDN = $username; ...I think we need to add a $wgLDAPGroupUseFullDN substitute in the $LDAPProviderDomainConfigProvider config:
$LDAPProviderDomainConfigProvider = function() { $config = [ 'LDAP' => [ 'connection' => [ "groupusefulldn" => false, ...