Extension:Vanilla Authentication

Vanilla Authentication is an authentication plugin designed to use Lussumo's Vanilla forum software userbase. The work is based off of the vBulletin/Users Integration.

Working on: MediaWiki 1.6 and Vanilla 1.0

Features:
 * Allows you to run MediaWiki with your Vanilla user database
 * Disallows users who do not have specified roles in Vanilla user database
 * Sets users to sysop status in MediaWiki if they have a specific role in Vanilla user database
 * Removes users from sysop status in MediaWiki if they no longer have a specific role in Vanilla user database
 * For same-database setups, allows easy installation

How To
require_once("AuthPlugin_Vanilla.php"); // if Vanilla and MediaWiki are not installed on the same database // change these values to reflect your Vanilla database information $wgAuth = new AuthPlugin_Vanilla($wgDBserver, $wgDBuser, $wgDBpassword, $wgDBname, "LUM_"); If you are running Vanilla and MediaWiki in the same database, then it already uses the connection information. If you are not running Vanilla and MediaWiki in the same database, please change the strings to reflect your Vanilla database information. In either case, the last value is whatever your Vanilla table prefix is. This prevents people from registering new accounts on the wiki, requiring people to register on Vanilla. It also prevents anonymous edits. This code may only work on MediaWiki 1.6.x and above.
 * Open your wiki/LocalSettings.php file
 * Insert the following code at the end of the file, before the ?>:
 * 1) Vanilla integration script
 * Insert this code below the require_once( "includes/DefaultSettings.php" ); at the top of the LocalSettings.php file:
 * Copy this AuthPlugin_Vanilla.php file and put it in your main wiki directory, ie: /wiki/AuthPlugin_Vanilla.php

Note that the above won't work if you're using the latest version of Vanilla released in fall 2008, because the password hashes are no longer using md5. See this page for more information.

There is, however, a hack you can use to get this to work. Assuming that your vanilla installation is in a directory called "forum" under your mediawiki directory, add the following to the top of the above file:

Then replace the following line in the above file:

with this: