hi ,OSnard
Thank you very much firstly ,but
My LocalSettings.php
about LDAP is as follows:
#---Extension LDAPProvider
wfLoadExtension( 'LDAPProvider' );
$ldapJsonFile = "/etc/mediawiki/ldapprovider.json";
$LDAPProviderDomainConfigs = $ldapJsonFile;
$LDAPProviderDomainConfigProvider = "\\MediaWiki\\Extension\\LDAPProvider\\DomainConfigProvider\\LocalJSONFile::newInstance";
#---Extension PluggableAuth
wfLoadExtension( 'PluggableAuth' );
$wgPluggableAuth_EnableLocalLogin = false;
$wgPluggableAuth_EnableAutoLogin = false;
#---Extension LDAPAuthentication2
#wfLoadExtension( 'LDAPUserInfo' );
#wfLoadExtension( 'LDAPGroups' );
wfLoadExtension( 'LDAPAuthentication2' );
$LDAPAuthentication2AllowLocalLogin = true;
#$LDAPAuthentication2UsernameNormalizer = "strtolower";
$wgPluggableAuth_Config['Log In (LDAP1)'] = [
'plugin' => 'LDAPAuthentication2',
'data' => [
'domain' => 'LDAP'
]
my ldapprovider.json
is as follow:
-rw-r--r-- 1 www-data www-data ldapprovider.json
{
"LDAP": {
"connection": {
"server": "172.21.218.101",
"port":"389",
"user": "acnmediawiki",
"pass": "xxxxx",
"enctype": "clear",
"options": {
"LDAP_OPT_DEREF": 1
},
"basedn": "DC=AXX,DC=MYCOMPANY,DC=CORP",
"groupbasedn": "DC=AXX,DC=MYCOMPANY,DC=CORP",
"userbasedn": "DC=AXX,DC=MYCOMPANY,DC=CORP",
"searchattribute": "samaccountname",
"searchstring": "CN=USER-NAME,OU=AXX,DC=AXX,DC=MYCOMPANY,DC=CORP",
"usernameattribute": "samaccountname",
"realnameattribute": "displayname",
"emailattribute": "mail"
}
}
}
Only username and password input and one loggin button,
the domain selection still has not appear on the loggin webpage yet, Can you help me.
the version information:
MediaWiki : 1.41.1
PHP : 8.1.2-1ubuntu2.18 (apache2handler)
ICU : 70.1
MariaDB : 10.6.18-MariaDB-0ubuntu0.22.04.1
Lua : 5.1.5
Pygments : 2.16.1
LDAPAuthentication2 : 3.0.0-alpha (c11a143)
LDAPProvider : 3.0.0-alpha (04e6499)
PluggableAuth : 7.1.0 (b8e2e84)