Difference between revisions of "Mediawiki"

From A-Eskwiki
Jump to: navigation, search
(LDAP auth voor Mediawiki)
Line 10: Line 10:
 
  # LDAP
 
  # LDAP
 
  require_once 'extensions/LdapAuthentication/LdapAuthentication.php';
 
  require_once 'extensions/LdapAuthentication/LdapAuthentication.php';
  require_once 'extensions/LdapAuthentication/LdapAutoAuthentication.php';require_once 'includes/AuthPlugin.php';
+
  require_once 'extensions/LdapAuthentication/LdapAutoAuthentication.php';
$wgAuth = new LdapAuthenticationPlugin();
+
require_once 'includes/AuthPlugin.php';
$wgLDAPDomainNames = array(
+
$wgAuth = new LdapAuthenticationPlugin();
 +
$wgLDAPDomainNames = array(
 
   'A-Eskwadraat.nl',
 
   'A-Eskwadraat.nl',
);
+
);
$wgLDAPServerNames = array(
+
$wgLDAPServerNames = array(
 
   'A-Eskwadraat.nl' => 'vm-ipa.a-eskwadraat.nl vm-rhel7-rc.a-eskwadraat.nl',
 
   'A-Eskwadraat.nl' => 'vm-ipa.a-eskwadraat.nl vm-rhel7-rc.a-eskwadraat.nl',
);
+
);
 
$wgLDAPEncryptionType = array(
 
$wgLDAPEncryptionType = array(
 
   'openldap_a-eskwadraat_nl' => 'ssl',
 
   'openldap_a-eskwadraat_nl' => 'ssl',

Revision as of 12:58, 27 June 2014


LDAP auth voor Mediawiki

Plemp het volgende in LocalSettings.php

# End of automatically generated settings.
# Add more configuration options below.

# LDAP
require_once 'extensions/LdapAuthentication/LdapAuthentication.php';
require_once 'extensions/LdapAuthentication/LdapAutoAuthentication.php';
require_once 'includes/AuthPlugin.php';
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array(
 'A-Eskwadraat.nl',
);
$wgLDAPServerNames = array(
 'A-Eskwadraat.nl' => 'vm-ipa.a-eskwadraat.nl vm-rhel7-rc.a-eskwadraat.nl',
);

$wgLDAPEncryptionType = array(

 'openldap_a-eskwadraat_nl' => 'ssl',

); $wgLDAPPort = array(

 'A-Eskwadraat.nl' => 389,

); $wgLDAPSearchStrings = array(

 'A-Eskwadraat.nl' => 'uid=USER-NAME,cn=users,cn=accounts,dc=a-eskwadraat,dc=nl'

); $wgLDAPBaseDNs = array(

 'A-Eskwadraat.nl' => 'dc=a-eskwadraat,dc=nl'

);

  1. AutoAuthSetup();