Extension:LDAPSyncAll/en

This extension provides a mechanism to synchronize users in the database and users in active directory.


 * If a user is in LDAP, but not in the database => the user is added to the database
 * If a user is in the database, but not in LDAP => the user account will be disabled in the database

Installation
Execute within MediaWiki root or add mediawiki/ldap-sync-all to the composer.json file of your projectː

Activation
Add the following line to your LocalSettings.phpː

Usage
The extension provides a maintenance script that you can simply run from your console php maintenance/SyncLDAPUsers.php. In addition, there is a RunJobsTriggerHandler that runs once a day.

Configuration
You need to add the following line in your LocalSettings.php. Don't forget to change "Admin" to the username who has admin permissions. This user disables accounts that are not in LDAP.

You can specify usernames and usergroups that you want to exclude from disabling, for example: