Chinaunix首页 | 论坛 | 博客
  • 博客访问: 174562
  • 博文数量: 76
  • 博客积分: 3560
  • 博客等级: 中校
  • 技术积分: 860
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-17 13:02
文章存档

2011年(2)

2010年(41)

2009年(33)

我的朋友

分类: LINUX

2010-02-05 15:39:49

在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) |
给主人留下些什么吧!~~