> 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.
> 

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
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to