Extension:AuthBugzilla

The goal of this extension is to offer user the same login and password in Bugzilla and Mediawiki, when installed on the same DB backend. The match between a Mediawiki user and a Bugzilla one is done via their email in the preferences, so make sure to force Mediawiki/Bugzilla to confirm users email at setup.

In short, with below extensions, if a given user has the same email in his Mediawiki profile and as login in Bugzilla:
 * the user can use its Mediawiki login and its Bugzilla password to log either to Mediawiki or Bugzilla
 * a password reset in either of the application will reset password in both applications
 * if the process fails for whatever reason (user has an account in Bugzilla but not Mediawiki, etc...), the authentication reverts to the usual process

Changes to the DBs

 * grant wikiuser the read/update rights to the bugzilla "profiles" table
 * grant bugzilla user the read right to your mediawiki "user" table (don't forget the table prefix if applicable).

Changes to Bugzilla
In Bugzilla\Auth\Verify\DB.pm, add the few lines between ####.

AuthBugzilla.php
In LocalSettings.php, add these lines: require_once("$IP/extensions/AuthBugzilla/AuthBugzilla.php"); $wgAuth = new AuthBugzilla;

Add the file AuthBugzilla.php to your extensions directory (copy the following code and save it as AuthBugzilla.php):