Download the PHP package mediawiki/ldap-provider without Composer
On this page you can find all versions of the php package mediawiki/ldap-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ldap-provider
== Extension:LDAPProvider ==
This extension provides a common infrastructure to connect to a LDAP resource and run queries against it.
=== Installation ===
This extension can be installed by creating a composer.local.json file in your MediaWiki's installation directory containing the following (or merging this into your current composer.local.json):
Note that "prefer": "source"
causes composer to use a clone of the git repository if it can.
=== Configuration ===
In the simplest case where you have a single LDAP server to query, you need to simply specify your LDAP server and the json file. By default LDAPProvider looks for this file in /etc/mediawiki/ldapprovider.json. If LDAProvider is installed, but cannot find it configuration file, it will fail with an error message.
LDAPProvider contains a sample configuration file that points to the [http://www.forumsys.com/ Forum Systems] [http://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/ online ldap test server] in the included ldapprovider.json
. This file and the server (if it is accessible on your network) will allow you to test the extension without affecting production systems or configuring your own LDAP server.
The contents of ldapprovider.json
demonstrates a minimal configuration:
Other configurations are possible.
If you just want to try out the sample configuration, adding the following to your LocalSettings.php should be all that is needed:
==== Alternative configuration via PHP ====
In LocalSettings.php
add
=== Testing ===
Tests are provided. These can be run using the following in your MediaWiki's installation directory:
$ ./tests/phpunit/phpunit.php extensions/LDAPProvider