PHPackages                             mediawiki/wiki-to-ldap - 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. mediawiki/wiki-to-ldap

ActiveMediawiki-extension

mediawiki/wiki-to-ldap
======================

Provides a way to migrate wiki users to LDAP-backed users

1.0.4(5y ago)163GPL-3.0+PHP

Since Jan 11Pushed 1mo ago18 watchersCompare

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

READMEChangelogDependencies (6)Versions (17)Used By (0)

WikiToLDAP
==========

[](#wikitoldap)

The initial development of this extension was funded by [The Open Source Geospatial Foundation](https://www.osgeo.org/) to help migrate their wiki users from MediaWiki-only user accounts to their centralized, LDAP-backed [OSGeo Services UserID](https://www.osgeo.org/community/getting-started-osgeo/osgeo_userid/). The intent is to merge existing wiki accounts with LDAP-backed accounts using the [UserMerge extension](https://www.mediawiki.org/wiki/Extension:UserMerge). There are two SpecialPages to handle this: Special:WikiUserMerge and Special:LDAPUserMerge. Because of the requirements for OSGeo, more work has been done on the Special:LDAPUserMerge workflow, but the other one should work as well.

Prerequisites
=============

[](#prerequisites)

- **A test wiki.** You’ll want to test the entire workflow before you deploy to production it since authentication is a critical part of the wiki.
- **Set up the [LDAPAuthentication2 extension](https://www.mediawiki.org/wiki/Extension:LDAPAuthentication2).** This depends on at least [PluggableAuth](https://www.mediawiki.org/wiki/Extension:PluggableAuth) and [LDAPProvider](https://www.mediawiki.org/wiki/Extension:LDAPProvider). You should ensure that users can log in using their LDAP credentials before proceding.
- **Enable the [UserMerge extension](https://www.mediawiki.org/wiki/Extension:UserMerge).** WikiToLDAP uses the merge capability of the UserMerge to handle the actual merging of users.
- **Enable the [Renameuser extension](https://www.mediawiki.org/wiki/Extension:Renameuser).** This is not strictly required, but the workflow outlined here depends on it. If you use the merge method described in this documentation, you’ll need this extension installed.

Installation
============

[](#installation)

This extension uses the new (as of early 2021) [Composer for extensions](https://www.mediawiki.org/wiki/Composer/For_extensions) guidance to install the extension.

This means that to install the extension you need to install composer and run the following To download the extension, run the following command from the command line in your wiki’s top-level directory (*i.e.* the one that contains the `LocalSettings.php` file) :

```
$ COMPOSER=composer.local.json php ( touch $COMPOSER && \
										composer.phar require --no-update mediawiki/wiki-to-ldap )
```

After this, you’ll need to enable the extension by adding the following to your `LocalSettings.php` file:

```
wfLoadExtension( 'WikiToLDAP' );
```

Configuration
=============

[](#configuration)

As with most other MediaWiki extensions, this extension is configured by setting PHP variables in the `LocalSettings.php` file. The settings are all prefixed with `WikiToLDAP` so the `MigrationInProgress` setting below would be set by adding the following line to the `LocalSettings.php`:

```
$WikiToLDAPMigrationInProgress = false;
```

 SettingDefaultDescription MigrationGroupwikitoldap-needs-migrationThe group old wiki users are put into before any migration is attempted. InProgressGroupwikitoldap-in-progressThe group users are put into after they log in and migration has started. MergedGroupwikitoldap-mergedThe group for users who have gone through WikiToLDAP’s merge process. OldUserNamePrefix⚠️The prefix the old wiki accounts have. You can use the `-r` option in the ‘MoveToMigrationGroup.php’ script to rename all current wiki users with this prefix. MigrationInProgresstrueWhether any migration is currently in progress. If false, defaults to behaving just like [LDAPAuthentication2](https://www.mediawiki.org/wiki/Extension:LDAPAuthentication2). OldUsersAreRenamedfalseSet to true if you use the `-r` option in the ‘MoveToMigrationGroup.php’ script. CanCheckOldUserfalseSet to true if you want users to be able to log in with their old wiki username during the transition period.Documentation
=============

[](#documentation)

A PDF version of this documentation can be produced by running `make` at the command line. It requires Emacs and LaTeX be installed as well and will complain if they aren’t.

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance59

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 67.5% of commits — single point of failure

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 ~17 days

Total

6

Last Release

1863d ago

Major Versions

0.9.0 → 1.0.02021-01-19

### Community

Maintainers

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

---

Top Contributors

[![hexmode](https://avatars.githubusercontent.com/u/43581?v=4)](https://github.com/hexmode "hexmode (52 commits)")[![umherirrender](https://avatars.githubusercontent.com/u/1174884?v=4)](https://github.com/umherirrender "umherirrender (13 commits)")[![DannyS712](https://avatars.githubusercontent.com/u/46829944?v=4)](https://github.com/DannyS712 "DannyS712 (3 commits)")[![kizule](https://avatars.githubusercontent.com/u/28963303?v=4)](https://github.com/kizule "kizule (2 commits)")[![strk](https://avatars.githubusercontent.com/u/289678?v=4)](https://github.com/strk "strk (1 commits)")[![vlad-shapik](https://avatars.githubusercontent.com/u/97897302?v=4)](https://github.com/vlad-shapik "vlad-shapik (1 commits)")[![Daimona](https://avatars.githubusercontent.com/u/38216014?v=4)](https://github.com/Daimona "Daimona (1 commits)")[![ZabeMath](https://avatars.githubusercontent.com/u/35405030?v=4)](https://github.com/ZabeMath "ZabeMath (1 commits)")[![legoktm](https://avatars.githubusercontent.com/u/81392?v=4)](https://github.com/legoktm "legoktm (1 commits)")[![mary-kate](https://avatars.githubusercontent.com/u/2213994?v=4)](https://github.com/mary-kate "mary-kate (1 commits)")[![reedy](https://avatars.githubusercontent.com/u/67615?v=4)](https://github.com/reedy "reedy (1 commits)")

---

Tags

mediawikiextensionldapwiki

### Embed Badge

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

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

###  Alternatives

[mediawiki/bootstrap

Provides the Bootstrap 5 web front-end framework to MediaWiki skins and extensions

15102.0k5](/packages/mediawiki-bootstrap)[mediawiki/simple-batch-upload

Basic, no-frills uploading of multiple files to MediaWiki

2321.3k](/packages/mediawiki-simple-batch-upload)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[professional-wiki/wikibase-local-media

Adds the local media data type to Wikibase

127.0k](/packages/professional-wiki-wikibase-local-media)

PHPackages © 2026

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