Hey guys, i've just migrated but there is a trouble now.
I recieve a "Could not authenticate credentials against domain "domain"" error.
My config is here:
wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'LDAPProvider' );
wfLoadExtension( 'LDAPAuthentication2' );
$LDAPAuthentication2UsernameNormalizer = 'strtolower';
$LDAPAuthentication2AllowLocalLogin = true;
$LDAPProviderDomainConfigProvider = function() {
$config = [
'domain => [
'connection' => [
"server" => "domain.com",
"user" => "domaincom\\user",
"pass" => 'Password02', //no binding error
"options" => [
"LDAP_OPT_DEREF" => 1
],
"basedn" => "DC=domain,DC=com",
"groupbasedn" => "DC=domain,DC=com",
"userbasedn" => "DC=domain,DC=com",
"searchattribute" => "sAMAccountName",
"searchstring" => "sAMAccountName=USER-NAME,DC=domain,DC=com",
//if i change to domaincom\\USER-NAME i'll recieve (PluggableAuthPrimaryAuthenticationProvider returned an invalid username:) error
"usernameattribute" => "sAMAccountName",
"realnameattribute" => "cn",
"emailattribute" => "mail"
]
]
];
return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config );
};
$LDAPAuthentication2AllowLocalLogin=true;
$wgShowExceptionDetails = true;
Pls, help me to catch the tail of this problem.
Thanks in advance.