Hi,
And I am able to authenticate users and I am being logged in, but the login process returns an error (even though I am logged in):
[aa7620161bb77e16aef3c615] /w/intcomsB/index.php?title=Special:UserLogin&returnto=Special%3AUserLogin ConfigException from line 53 of /var/www/www-mediawiki/mediawiki-1.33.0/includes/config/GlobalVarConfig.php: GlobalVarConfig::get: undefined option: 'LDAPUserInfoModifierRegistry'
I can not see any reference to 'LDAPUserInfoModifierRegistry' does anyone know what I have missed?
Thanks
Joe
Config:
wfLoadExtensions( [
'PluggableAuth',
'LDAPProvider',
'LDAPAuthentication2',
'LDAPAuthorization',
'LDAPUserInfo'
] );
$LDAPProviderCacheTime = 1;
$LDAPAuthentication2UsernameNormalizer = 'strtolower';
$LDAPAuthentication2AllowLocalLogin = false;
$wgPluggableAuth_EnableAutoLogin = false;
$wgPluggableAuth_EnableLocalLogin = false;
$wgPluggableAuth_EnableLocalProperties = true;
$wgPluggableAuth_ButtonLabel = "Log in";
$wgAuthRemoteuserUserName = function() {
$user = '';
if( isset( $_SERVER['REMOTE_USER'] ) ) {
$user = strtolower( $_SERVER['REMOTE_USER'] );
}
return $user;
};
$LDAPProviderDomainConfigProvider = function() {
$config = [
'DOMAINNAME' => [
'connection' => [
"server" => "name.example.org.uk",
"options" => [
"LDAP_OPT_DEREF" => 1
],
"port" => 389,
"enctype" => "clear",
"user" => "DOMAINNAME\SPECIALUSER",
"pass" => "THE PASSWORD",
"basedn" => "dc=example,dc=org,dc=uk",
"groupbasedn" => "dc=example,dc=org,dc=uk",
"userbasedn" => "dc=example,dc=org,dc=uk",
"searchattribute" => "samaccountname",
"searchstring" => "DOMAINNAME\\USER-NAME",
"usernameattribute" => "samaccountname",
"realnameattribute" => "displayname",
"emailattribute" => "mail",
"grouprequest" => "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory"
],
'authorization' => [
'rules' => [
]
] ,
'userinfo' => [
'attributes-map' => [
'email' => 'mail',
'realname' => 'displayname'
]
]
]
];
return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config );
};