Hi
I am running MediaWiki on Windows Server 2016 and have configured Active Directory Integration although users can log in they are not joined to any MedaWiki groups.
CheckLogin.php and ShowUserInfo.php run OK, however when I run ShowUserGroups.php I get the following errors.
Full DNs: PHP Warning: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\mediawiki\extensions\LDAPProvider\maintenance\ShowUserGroups.php on line 60 Warning: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\mediawiki\extensions\LDAPProvider\maintenance\ShowUserGroups.php on line 60 Short names: PHP Warning: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\mediawiki\extensions\LDAPProvider\src\GroupList.php on line 52 Warning: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\mediawiki\extensions\LDAPProvider\src\GroupList.php on line 52
My ldap.json is below. Any help would be much appreciated.
{
"ad.xxx.xx.xx": {
"connection": {
"server": "xxx-xxxx-xx",
"port": "389",
"user": "CN=xxx,OU=xxx,DC=ad,DC=xxx,DC=xx,DC=xx",
"pass": "xxxxxxxxxxxxxxxxxx",
"enctype": "clear",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "dc=ad,dc=xxx,dc=xx,dc=xx",
"userbasedn": "dc=ad,dc=xxx,dc=xx,dc=xx",
"groupbasedn": "OU=Groups,OU=WiKi,OU=xxxx,OU=xxx,OU=xxx,DC=ad,DC=xxx,DC=xx,DC=xx",
"searchattribute": "samaccountname",
"usernameattribute": "samaccountname",
"realnameattribute": "cn",
"emailattribute": "mail",
"grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",
"presearchusernamemodifiers": [ "spacestounderscores", "lowercase" ]
},
"userinfo": [],
"authorization": [],
"groupsync": {
"mapping": {
"sdadmins": "CN=xxxx,OU=Groups,OU=WiKi,OU=xxxx,OU=xxx,OU=xxx,DC=ad,DC=xxx,DC=xx,DC=xx",
"ictonly": "CN=xxxx,OU=Groups,OU=WiKi,OU=xxx,OU=xxx,OU=xxx,DC=ad,DC=xxx,DC=xx,DC=xx"
}
}
}
}