Battling with these extensions and have got Authorization to work, but when I try to restrict by group it fail. Looking at function makeGroupRequirements the ldapUserGroups has no values.
$ldapUserGroups = $this->ldapClient->getUserGroups( $username );
$username equals "andrew" and looking at debug output the memberof has been read.
[MediaWiki\Extension\LDAPProvider\Client] MediaWiki\Extension\LDAPProvider\Client::getUserDN: search with array (
'base' => 'dc=dcs,dc=bbk,dc=ac,dc=uk',
'filter' => '(samaccountname=andrew)',
'attributes' =>
array (
0 => '*',
1 => 'memberof',
),
)
....
10 => 'usncreated',
'memberof' =>
array (
'count' => 7,
0 => 'CN=xxx1,DC=dcs,DC=bbk,DC=ac,DC=uk',
1 => 'CN=xxx2,DC=dcs,DC=bbk,DC=ac,DC=uk',
2 => 'CN=xxx3,OU=StaffUsers,DC=dcs,DC=bbk,DC=ac,DC=uk',
3 => 'CN=xxx4,OU=StaffUsers,DC=dcs,DC=bbk,DC=ac,DC=uk',
4 => 'CN=xxx5,CN=Users,DC=dcs,DC=bbk,DC=ac,DC=uk',
5 => 'CN=xxx6,CN=Users,DC=dcs,DC=bbk,DC=ac,DC=uk',
6 => 'CN=xxx7,OU=StaffUsers,DC=dcs,DC=bbk,DC=ac,DC=uk',
),
11 => 'memberof',
'usnchanged' =>
array (
'count' => 1,
Any ideas?