-
Notifications
You must be signed in to change notification settings - Fork 3
MW LDAP configuration
Peter Willendrup edited this page Feb 4, 2016
·
2 revisions
Firstly, install the extension LdapAuthentication if it is not already available in extensions/LdapAuthentication/.
The stuff below goes in Localsettings.php
# LDAP
require_once 'extensions/LdapAuthentication/LdapAuthentication.php';
require_once 'includes/AuthPlugin.php';
$wgAuth = new LdapAuthenticationPlugin();
$wgDebugLogFile = '/srv/mcweb/mediawiki-logfile.log';
$wgDebugLogGroups['ldap'] = '/srv/mcweb/mediawiki-logfile.log';
//$wgShowExceptionDetails = true; //for debugging MediaWiki
$wgLDAPDebug = 3;
$wgLDAPDomainNames = array(
'mediawiki_risoe_dk',
);
$wgLDAPSearchAttributes = array( "mediawiki_risoe_dk" => "uid" );
$wgLDAPServerNames = array(
'mediawiki_risoe_dk' => 'localhost'
);
$wgLDAPUseLocal = true;
$wgLDAPEncryptionType = array(
'mediawiki_risoe_dk' => 'clear'
);
$wgLDAPPort = array(
'mediawiki_risoe_dk' => 389
);
$wgLDAPBaseDNs = array(
'mediawiki_risoe_dk' => 'dc=risoe,dc=dk'
);
$wgLDAPGroupBaseDNs = array(
'mediawiki_risoe_dk' => 'ou=group,dc=risoe,dc=dk'
);
Finally execute
php maintenance/update.php
to apply changes to the DB