I looked at Raskas' blog and saw how he did it and applied the similar idea to MediaWiki 1.9.1 to make it work with Apache authentication mechanism. It takes only 2 steps:
1- Edit LocalSettings.php and append the following right before the php section ends with "?>"
# Apache::mod_auth integration
require_once('extensions/Auth_remoteuser.php');
$wgAuth = new Auth_remoteuser();
# Disable anonymous edits
$wgGroupPermissions['*']['edit'] = false;
2- Download the following file: Auth_remoteuser.php.txt, rename it to "Auth_remoteuser.php" and put it in the following directory "extensions".
That's it!
Hi! this looks very useful, but your link to the php file is broken. Can you check that?
Posted by: alan | November 25, 2008 at 07:34 AM
The link should be working again.
Posted by: sbulut | November 25, 2008 at 08:26 AM
Do you know about this error?
Fatal error: Call to private method User::loadFromSession() from context '' in /usr/local/apache2/htdocs/wiki/common/extensions/Auth_remoteuser.php on line 57
Posted by: Simson | December 27, 2008 at 05:04 PM