aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mediawiki/templates/LocalSettings.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mediawiki/templates/LocalSettings.php')
-rw-r--r--modules/mediawiki/templates/LocalSettings.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/mediawiki/templates/LocalSettings.php b/modules/mediawiki/templates/LocalSettings.php
index 3e0fe5d2..8a0a60e4 100644
--- a/modules/mediawiki/templates/LocalSettings.php
+++ b/modules/mediawiki/templates/LocalSettings.php
@@ -123,4 +123,27 @@ $wgDiff3 = "/usr/bin/diff3";
# sure that cached pages are cleared.
$wgCacheEpoch = max( $wgCacheEpoch, gmdate( 'YmdHis', @filemtime( __FILE__ ) ) );
+require_once 'extensions/LdapAuthentication.php';
+$wgAuth = new LdapAuthenticationPlugin();
+
+$wgLDAPDomainNames = array( 'ldap');
+#TODO make it workable with more than one server
+$wgLDAPServerNames = array( 'ldap' => 'ldap.<%= domain %>' );
+
+$wgLDAPSearchStrings = array( 'ldap' => 'uid');
+
+$wgLDAPEncryptionType = array( 'ldap' => 'tls');
+
+$wgLDAPBaseDNs = array( 'ldap' => 'ou=People,<%= dc_suffix %>');
+
+$wgLDAPProxyAgent = array( 'ldap' => 'cn=mediawiki-alamut,ou=System Accounts,<%= dc_suffix %>');
+
+$wgLDAPProxyAgentPassword = array( 'ldap' => '<%= ldap_password %>' );
+
+$wgLDAPUseLDAPGroups = array( "ldap" => true );
+$wgLDAPGroupNameAttribute = array( "ldap" => "cn" );
+
+$wgLDAPLowerCaseUsername = array( "ldap" => true );
+
+$wgMinimalPasswordLength = 1;