MiediwWiki LDAP配置脚本

来源:互联网 发布:计算机网络考研 知乎 编辑:程序博客网 时间:2024/06/06 07:00

# LDAP

require_once 'extensions/LdapAuthentication/LdapAuthentication.php';

require_once 'includes/AuthPlugin.php';

$wgLDAPDomainNames = array( 'phicomm-networks');

$wgLDAPServerNames = array( 'phicomm-networks'=> '172.16.100.8');

$wgLDAPEncryptionType = array('phicomm-networks'=> 'SSL');

$wgLDAPProxyAgent =  array('phicomm-networks' => 'CN=admini,OU=freecomm,DC=freecomm-networks,DC=com');

$wgLDAPProxyAgentPassword = array('phicomm-networks' => 'freecommfreecomm');

$wgLDAPUseLocal = true;

$wgMinimalPasswordLength = 1;

$wgLDAPBaseDNs = array ('phicomm-networks'=> 'OU=freecomm,DC=freecomm-networks,DC=com');

$wgLDAPSearchAttributes = array ('phicomm-networks'=> 'sAMAccountName');

$wgLDAPDebug = 5;

$wgFileExtensions = array('pdf','png','jpg','jpeg','ogg','doc','xls','ppt','mp3','sxc','nse','mmp','docx','xlsx','txt','et','wps','dps');

#以新窗口打开外部链接
$wgExternalLinkTarget='_blank';

$wgUseImageResize = true;
$wgUseImageMagick = true;

$wgImageMagickConvertCommand = "/usr/bin/convert"



0 0