For some explanation of how to hack your own auth system into MediaWiki, a couple good resources are:

http://meta.wikimedia.org/wiki/User:Otheus/AutoLoginviaREMOTEUSER http://www.x-tend.be/~raskas/blog/2006/11/17/mediawiki-remote-user-authentication

I wanted to do someting a little different:

Here are the steps I took - many thanks to Raska!

  • Add a new function to the bottom of the file

    function Auth_remote_user_hook()
    {
    global $wgUser;
    global $wgRequest;
    
    // For a few special pages, don't do anything.
    $title = $wgRequest->getVal('title') ;
    if ($title == 'Special:Userlogout' ||
    $title == 'Special:Userlogin') {
    return;
    }
    
    $wgUser = User::loadFromSession();
    $username = strtolower($wgUser->getName());
    global $wgAllowedUsers,$IP;
    if(in_array($username,$wgAllowedUsers))
    {
    // Do nothing if session is valid
    if ($wgUser->isLoggedIn()) {
    return;
    }
    }
    
    // If it is not valid log them out
    include("$IP/includes/SpecialUserlogout.php");
    wfSpecialUserLogout();
    }
    

  • Edit your LocalSettings.php file

    // Add to the bottom of the file (change path as appropriate):
    require_once('/path/to/mfpl_auth_plugin.inc.php');
    $wgAuth = new mfpl_auth_plugin();
    $wgAllowedUsers = array(
    'joe','susie','jane'
    );