With great help i seem to have LDAP in place on our internal wiki (running on a Debian 10 VM) in our local windows domain (abc.local
). I want all domain users to be able to edit the wiki. When i try to login to the wiki with a test account (rjsmith) i get User rjsmith not authorized.
. If i intentionally put in wrong pwd for rjsmith i get Could not authenticate credentials against domain "abc.local"
.
Here is the LDAP inline function from my LocalSettings.php:
$LDAPProviderDomainConfigProvider = function()
{
$config =
[
"abc.local" =>
[
"connection" =>
[
"server" => "5.5.5.5",
"user" => "Administrator@abc.local",
"pass" => "password",
"basedn" => "dc=abc,dc=local",
"groupbasedn" => "dc=abc,dc=local",
"userbasedn" => "dc=abc,dc=local",
"searchattribute" => "samaccountname",
"searchstring" => "USER-NAME@abc.local",
"usernameattribute" => "samaccountname",
"realnameattribute" => "cn",
"emailattribute" => "mail",
"grouprequest" => "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\GroupMember::factory"
],
"authorization" =>
[
"rules" =>
[
"groups" =>
[
"required" => [ "cn=Users,dc=abc,dc=local" ]
]
]
],
"userinfo" =>
[
"email" => "mail",
"realname" => "cn",
"properties.gender" => "gender"
]
]
];
return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config );
};
What do i need so that any domain user in group Domain Users
(abc.local/Users) can access the wiki?
thanks, russ