我无法 在MediaWiki wiki中登录/创建新用户。
它抛出错误:
Account creation error: Incorrect password entered. Please try again.
或者当我尝试登录时:
Log-in error :Incorrect password entered. Please try again.
根据MediaWiki中的帮助文档,在localsettings.php文件中添加了以下代码。
我还在我的本地ubuntu机器中添加了php-ldap服务命令提示符。
require_once 'extensions/LdapAuthentication/LdapAuthentication.php';
require_once 'includes/AuthPlugin.php';
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array(
'MDomain',
);
$wgLDAPServerNames = array(
'MDomain.local' => '10.10.1.6','MDomain-C02.MDomain','MDomain01.MDomain.local',
);
$wgLDAPUseLocal = false;
$wgLDAPEncryptionType = array(
'MDomain.LOCAL' => 'tls',
);
$wgLDAPPort = array(
'openldap_example_com' => 389,
);
$wgLDAPProxyAgent = array(
'MDomain.local' => 'cn=wikimedia-service,dc=MDomain,dc=LOCAL',
);
$wgLDAPProxyAgentPassword = array(
'MDomain.local' => 'XXXX',
);
$wgLDAPSearchAttributes = array(
'MDomain.local' => 'sAMAccountName'
);
$wgLDAPBaseDNs = array(
'MDomain.local' => 'ou=MDomain,dc=MDomain,dc=local',
);
# To pull e-mail address from LDAP
$wgLDAPPreferences = array(
'MDomain.local' => array( 'email' => 'mail')
);
# Group based restriction
$wgLDAPGroupUseFullDN = array( "MDomain.local"=>false );
$wgLDAPGroupObjectclass = array( "MDomain.local"=>"Group" );
$wgLDAPGroupAttribute = array( "MDomain.local"=>"memberuid" );
$wgLDAPGroupSearchNestedGroups = array( "MDomain.local"=>true );
$wgLDAPGroupNameAttribute = array( "MDomain.local"=>"cn" );
$wgLDAPRequiredGroups = array( "MDomain.local"=>array("cn=wikimedia-service,dc=MDomain,dc=local"));
$wgLDAPLowerCaseUsername = array(
'MDomain.local' => true,
);
如果我遗失任何东西,请告诉我。