Dear Ryan,
Thanks for your help. I tried redirecting by adding "Redirect /w/Special:UserLogin
https://<servername>/wiki/Main_Page" to http.conf.
The pop-up box came up, I typed in my name and password, and was redirected to the Main
Page, but I don't seem to be logged in. I don't see the usual logged-in icons on
the top right and I don't see the option to edit pages.
Any advice?
Thanks again,
Melissa
-----Original Message-----
From: mediawiki-l-bounces(a)lists.wikimedia.org [mailto:mediawiki-l-
bounces(a)lists.wikimedia.org] On Behalf Of Lane, Ryan
Sent: Tuesday, May 12, 2009 6:40 AM
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Authentication
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
redirecting but I haven't been able to get it to work yet.
I'd recommend redirecting. You should be able to do this in Apache by
changing:
<Location /w/Special:UserLogin>
AuthType "basic"
AuthName "wiki"
AuthPAM_Enabled on
AuthPAM_FallThrough Off
SSLRequireSSL
Require valid-user
</Location>
To:
<Location /w/Special:UserLogin>
AuthType "basic"
AuthName "wiki"
AuthPAM_Enabled on
AuthPAM_FallThrough Off
SSLRequireSSL
Require valid-user
Redirect /w/Special:UserLogin https://<servername>/wiki/Main_Page
</Location>
V/r,
Ryan Lane