Hi Ryan,
Thanks for your response! You were right. I changed my if statement in
LocalSettings.php to:
session_start();
if ((!empty($_SERVER['PHP_AUTH_USER']) && !empty($_SERVER['REMOTE_USER'])) ||
$_COOKIE[$wgDBserver . "UserID"]) {
require_once("$IP/extensions/HttpAuthPlugin.php");
$wgAuth = new HttpAuthPlugin();
$wgHooks['UserLoadFromSession'][] = array($wgAuth,'autoAuthenticate');
using $_COOKIE[$wgDBserver . "UserID"] rather than $_COOKIE['fpwiki_en_UserID']
as you suggested.
This is working much better now. I enabled pretty URLs using $wgUsePathInfo =
true; I removed the "Create an Account or Login" link in the top right-hand
corner of every page by editing Monobook.php as described in the FAQ. As I
showed in my previous e-mail, Special:UserLogin is protected by SSL and PAM.
This authentication is working great.
I have one small problem now. When a user visits Special:UserLogin, the user
sees a pop-up screen and is prompted for a username and password, which is
validated against the external database. If this validation is successful, the
user is logged in, and can see this in the top-right hand corner of the page.
However, the user then sees the Special:UserLogin page, which makes it seem as
if the user needs to login AGAIN, which is not the case. Do you have any
advice? I am thinking that my two main options are 1) to replace the text and
layout of Special:UserLogin with something else (like "Welcome") or 2) redirect
to the Main Page. There is some code on
http://www.mediawiki.org/wiki/Extension:HttpAuth under "Allowing Anonymous
Browsing" describing how to handle this redirectiong but I haven't been able to
get it to work yet.
Thank you again for your time and help!
Regards,
Melissa Soriano
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l