Thread:Extension talk:LDAP Authentication/Ldap group restriction doesnt work

The MediaWiki version you are using

Mediawiki 1.6.12

The LdapAuthentication extension version you are using

LdapAuthentication-MW1.18-r90286

Hi, I have setup a windows server 2008 r2, with Apache, Mysql, and Php, and Mediawiki 1.6.12 to work with active directory authentication. This all works fine. However, i am trying to restrict access to certain active directory OU's OR groups.

My ldap config:

require_once ('extensions/LdapAuthentication.php');

$wgAuth = new LdapAuthenticationPlugin;

$wgLDAPDomainNames = array( "domain.nl" );

$wgLDAPServerNames = array( "domain.nl" => "server.domain.nl" );

$wgLDAPGroupUseFullDN = array( "domain.nl"=>true );

$wgLDAPBaseDNs = array( 'domain.nl' => 'DC=domain,DC=nl' );

$wgLDAPSearchAttributes = array( 'domain.nl' => 'sAMAccountName' );

$wgLDAPGroupsUseMemberOf = array( "domain.nl" => true );

//The objectclass of the groups we want to search for $wgLDAPGroupObjectclass = array( "domain.nl"=>"group" );

//The attribute used for group members $wgLDAPGroupAttribute = array( "domain.nl"=>"member" );

//The naming attribute of the group $wgLDAPGroupNameAttribute = array( "domain.nl"=>"cn" );

$wgLDAPRequiredGroups = array( "domain.nl"=> array( "CN=allowedgroup,OU=Technisch,OU=company,DC=company,DC=nl" ) );

$wgLDAPExcludedGroups = array( "domain.nl"=> array( "CN=deniedgroup,OU=Advies,OU=company,DC=company,DC=nl" ) );

$wgLDAPUseLDAPGroups = array( "domain"=>true );

Like I said, ldap authentication works fine, but i want certain groups not be able to login. What am i doing wrong?