PHPackages                             mediawiki/ldap-provider - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mediawiki/ldap-provider

ActiveMediawiki-extension[Utility &amp; Helpers](/categories/utility)

mediawiki/ldap-provider
=======================

Provides a mechanism for MediaWiki to retrieve information using the LDAP protocol

3.0.7(2mo ago)12.6k↓50%2GPL-2.0+PHP

Since Sep 28Pushed 1mo ago17 watchersCompare

[ Source](https://github.com/wikimedia/mediawiki-extensions-LDAPProvider)[ Packagist](https://packagist.org/packages/mediawiki/ldap-provider)[ Docs](https://www.mediawiki.org/wiki/Extension:LDAPProvider)[ RSS](/packages/mediawiki-ldap-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (14)Versions (44)Used By (0)

Table of Contents
-----------------

[](#table-of-contents)

- [Extension:LDAPProvider](#user-content-ExtensionLDAPProvider)
    - [Installation](#user-content-Installation)
    - [Configuration](#user-content-Configuration)
        - [Alternative configuration via PHP](#user-content-Alternative_configuration_via_PHP)
    - [Testing](#user-content-Testing)

Extension:LDAPProvider
-----------------------------------------------------------------------

[](#extensionldapprovider)

This extension provides a common infrastructure to connect to a LDAP resource and run queries against it.

### Installation

[](#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):

```
{
	"require": {
		"mediawiki/ldap-provider": "dev-master"
	},
	"config": {
		"prefer": "source"
	}
}
```

Note that `"prefer": "source"` causes composer to use a clone of the git repository if it can.

### Configuration

[](#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 [Forum Systems](http://www.forumsys.com/) [online ldap test server](http://www.forumsys.com/tutorials/integration-how-to/ldap/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:

```
{
	"LDAP Demo": {
		"connection": {
				"server": "10.5.5.1",
				"user": "cn=read-only-admin,dc=example,dc=com",
				"pass": "password",
				"basedn": "dc=example,dc=com",
				"searchstring": "uid=USER-NAME,dc=example,dc=com"
		}
	}
```

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:

```
$LDAPProviderDomainConfigs = "$IP/extensions/LDAPProvider/ldapprovider.json";
```

#### Alternative configuration via PHP

[](#alternative-configuration-via-php)

In `LocalSettings.php` add

```
$LDAPProviderDomainConfigProvider = function( $ldapConfig ) {
	return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( [
		//Domain name
		'LDAP' => [
			'connection' => [
					'server' => '10.5.5.1',
					'user' => 'cn=read-only-admin,dc=example,dc=com',
					'pass' => 'password',
					'basedn' => 'dc=example,dc=com',
					'searchstring' => 'uid=USER-NAME,dc=example,dc=com'
				]
			]
	] );
};
```

### Testing

[](#testing)

Tests are provided. These can be run using the following in your MediaWiki's installation directory:

 $ ./tests/phpunit/phpunit.php extensions/LDAPProvider

###  Health Score

54

—

FairBetter than 97% of packages

Maintenance88

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~80 days

Recently: every ~28 days

Total

28

Last Release

76d ago

Major Versions

2.0.11 → 3.0.02025-03-24

2.0.12 → 3.0.12025-07-01

2.0.13 → 3.0.32025-09-30

2.0.14 → 3.0.42025-11-03

2.0.15 → 3.0.62026-01-20

### Community

Maintainers

![](https://www.gravatar.com/avatar/091004c4b32e573a26383800e11030fc01201119f53a8fa6886aa34e80edb42d?d=identicon)[hexmode](/maintainers/hexmode)

---

Top Contributors

[![translatewiki](https://avatars.githubusercontent.com/u/24829418?v=4)](https://github.com/translatewiki "translatewiki (49 commits)")[![hexmode](https://avatars.githubusercontent.com/u/43581?v=4)](https://github.com/hexmode "hexmode (43 commits)")[![HamishSlater](https://avatars.githubusercontent.com/u/26261210?v=4)](https://github.com/HamishSlater "HamishSlater (23 commits)")[![umherirrender](https://avatars.githubusercontent.com/u/1174884?v=4)](https://github.com/umherirrender "umherirrender (15 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (4 commits)")[![ZabeMath](https://avatars.githubusercontent.com/u/35405030?v=4)](https://github.com/ZabeMath "ZabeMath (4 commits)")[![Krinkle](https://avatars.githubusercontent.com/u/156867?v=4)](https://github.com/Krinkle "Krinkle (2 commits)")[![pkolmann](https://avatars.githubusercontent.com/u/2240760?v=4)](https://github.com/pkolmann "pkolmann (2 commits)")[![it-spiderman](https://avatars.githubusercontent.com/u/13665198?v=4)](https://github.com/it-spiderman "it-spiderman (2 commits)")[![thiemowmde](https://avatars.githubusercontent.com/u/6576639?v=4)](https://github.com/thiemowmde "thiemowmde (1 commits)")[![Wandji69](https://avatars.githubusercontent.com/u/30343223?v=4)](https://github.com/Wandji69 "Wandji69 (1 commits)")[![m1cr0man](https://avatars.githubusercontent.com/u/3044438?v=4)](https://github.com/m1cr0man "m1cr0man (1 commits)")[![bluespice-github-bot](https://avatars.githubusercontent.com/u/33830316?v=4)](https://github.com/bluespice-github-bot "bluespice-github-bot (1 commits)")[![chiefgeek157](https://avatars.githubusercontent.com/u/243314?v=4)](https://github.com/chiefgeek157 "chiefgeek157 (1 commits)")[![DannyS712](https://avatars.githubusercontent.com/u/46829944?v=4)](https://github.com/DannyS712 "DannyS712 (1 commits)")[![KleinMuci](https://avatars.githubusercontent.com/u/84108018?v=4)](https://github.com/KleinMuci "KleinMuci (1 commits)")[![legoktm](https://avatars.githubusercontent.com/u/81392?v=4)](https://github.com/legoktm "legoktm (1 commits)")[![amire80](https://avatars.githubusercontent.com/u/346271?v=4)](https://github.com/amire80 "amire80 (1 commits)")[![MaxSem](https://avatars.githubusercontent.com/u/1260606?v=4)](https://github.com/MaxSem "MaxSem (1 commits)")[![sashkop](https://avatars.githubusercontent.com/u/3464415?v=4)](https://github.com/sashkop "sashkop (1 commits)")

---

Tags

mediawikiextensionldapwiki

###  Code Quality

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/mediawiki-ldap-provider/health.svg)

```
[![Health](https://phpackages.com/badges/mediawiki-ldap-provider/health.svg)](https://phpackages.com/packages/mediawiki-ldap-provider)
```

###  Alternatives

[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[mediawiki/chameleon-skin

A highly flexible MediaWiki skin using Bootstrap 4

12481.8k2](/packages/mediawiki-chameleon-skin)[mediawiki/semantic-extra-special-properties

Provides extra special properties for Semantic MediaWiki

3074.6k1](/packages/mediawiki-semantic-extra-special-properties)[mediawiki/semantic-scribunto

A Semantic Mediawiki extension to natively support the Scribunto extension

2967.5k](/packages/mediawiki-semantic-scribunto)[mediawiki/semantic-cite

A Semantic MediaWiki extension to manage citation resources.

2310.2k1](/packages/mediawiki-semantic-cite)[starcitizentools/tabber-neue

Allows to create tabs within a page. Forked from Extension:Tabber

243.6k](/packages/starcitizentools-tabber-neue)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
