Difference between revisions of "Authenticating MediaWiki to LDAP servers"
From MyWiki
(2 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
$wgLDAPServerNames = array( | $wgLDAPServerNames = array( | ||
− | 'LDAP' => ' | + | 'LDAP' => 'mustard.bold.ac.uk' |
); | ); | ||
$wgLDAPSearchStrings = array( | $wgLDAPSearchStrings = array( | ||
− | 'LDAP' => 'uid=USER-NAME,ou=people,dc= | + | 'LDAP' => 'uid=USER-NAME,ou=people,dc=bold,dc=ac,dc=uk' |
); | ); | ||
Line 23: | Line 23: | ||
----------- | ----------- | ||
− | And the following was added : | + | And the following was added : |
+ | $wgLDAPProxyAgent = array( | ||
+ | 'exampleNonADDomain' => 'cn=proxyagent,ou=Users,dc=exampledomain,dc=example,dc=com' | ||
+ | ); | ||
+ | |||
+ | $wgLDAPProxyAgentPassword = array( | ||
+ | 'exampleNonADDomain' => 'eX@mP1eP$$wRd' | ||
+ | ); | ||
+ | ------------- | ||
+ | require_once "$IP/extensions/LdapAuthentication/LdapAuthentication.php"; | ||
+ | |||
+ | $wgAuth = new LdapAuthenticationPlugin(); | ||
+ | |||
+ | $wgLDAPDomainNames = array( | ||
+ | 'exampleADDomain', 'exampleNonADDomain' | ||
+ | ); | ||
+ | |||
+ | $wgLDAPServerNames = array( | ||
+ | 'exampleADDomain' => 'exampleldapserver.example.com exampleldapserver2.example.com', | ||
+ | 'exampleNonADDomain' => 'nonadserver.example.com nonadserver2.example.com nonadserver3.example.com' | ||
+ | ); | ||
+ | |||
+ | $wgLDAPSearchStrings = array( | ||
+ | 'exampleADDomain' => 'ADDOMAIN\\USER-NAME', | ||
+ | 'exampleNonADDomain' => 'uid=USER-NAME,ou=people,dc=example,dc=com' | ||
+ | ); | ||
+ | |||
+ | $wgLDAPEncryptionType = array( | ||
+ | 'exampleADDomain' => 'ssl', | ||
+ | 'exampleNonADDomain' => 'ssl' | ||
+ | ); | ||
+ | |||
+ | $wgMinimalPasswordLength = 1; |
Latest revision as of 10:13, 26 July 2014
Good configuration examples here : http://www.mediawiki.org/wiki/Extension:LDAP_Authentication/AD_Configuration_Examples The follwoing was cut from config : $wgAuth = new LdapAuthenticationPlugin(); $wgLDAPDomainNames = array( 'exampleADDomain' ); $wgLDAPServerNames = array( 'LDAP' => 'mustard.bold.ac.uk' ); $wgLDAPSearchStrings = array( 'LDAP' => 'uid=USER-NAME,ou=people,dc=bold,dc=ac,dc=uk' ); $wgLDAPEncryptionType = array( 'LDAP' => 'clear' ); $wgLDAPUseLocal = true; $wgMinimalPasswordLength = 1;
And the following was added : $wgLDAPProxyAgent = array( 'exampleNonADDomain' => 'cn=proxyagent,ou=Users,dc=exampledomain,dc=example,dc=com' ); $wgLDAPProxyAgentPassword = array( 'exampleNonADDomain' => 'eX@mP1eP$$wRd' );
require_once "$IP/extensions/LdapAuthentication/LdapAuthentication.php";
$wgAuth = new LdapAuthenticationPlugin();
$wgLDAPDomainNames = array(
'exampleADDomain', 'exampleNonADDomain'
);
$wgLDAPServerNames = array(
'exampleADDomain' => 'exampleldapserver.example.com exampleldapserver2.example.com', 'exampleNonADDomain' => 'nonadserver.example.com nonadserver2.example.com nonadserver3.example.com'
);
$wgLDAPSearchStrings = array(
'exampleADDomain' => 'ADDOMAIN\\USER-NAME', 'exampleNonADDomain' => 'uid=USER-NAME,ou=people,dc=example,dc=com'
);
$wgLDAPEncryptionType = array(
'exampleADDomain' => 'ssl', 'exampleNonADDomain' => 'ssl'
);
$wgMinimalPasswordLength = 1;