在LocalSettings.php 中加入:
require_once( 'includes/LdapAuthentication.php');
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array ( "eloomobile" );
$wgLDAPServerNames = array ( "eloomobile"=> "192.168.1.224");
$wgMinimalPasswordLength = 1;
$wgLDAPSearchStrings = array( "eloomobile" => "uid=USER-NAME,ou=Users,dc=eloomobile,dc=com" );
$wgLDAPBaseDNs = array ( "eloomobile"=> "ou=Users,dc=eloomobile,dc=com" );
$wgLDAPSearchAttributes = array ( "eloomobile"=>"uid" );
$wgLDAPUseLocal = false;
$wgLDAPUpdateLDAP = false;
$wgLDAPMailPassword = false;
$wgLDAPEncryptionType = off;
下载LdapAuthentication.php入在includes目录下
阅读(684) | 评论(0) | 转发(0) |