Extension:AdminWhiteList

Description
This extension is useful to add sysop and bureaucrat permissions to the user logged in when you are in an external authentication wiki based, like LDAP.

You must define an array (LocalSettings) with the name of the users you want to be included in sysop and bureaucrat groups. When the user logs in, the extension compares the username with the names in the array and, if the username is in the array, the user is automatically added to both groups.

Usage

 * Copy the code below to a file named "AdminWhiteList.php" into the extension folder.


 * Add the include for this extension in LocalSettings.php


 * Add the vars $wgAdminWhiteList and $wgAdminWhiteListDebug to your LocalSettings.php


 * Ready to go.

Code
Check the code