[pmwiki-users] Easy .htaccess authentication setup?

Patrick R. Michaud pmichaud at pobox.com
Fri Jun 23 11:32:58 CDT 2006


On Fri, Jun 23, 2006 at 08:20:13AM +1000, Kathryn Andersen wrote:
> On Thu, Jun 22, 2006 at 09:46:38AM -0400, Alan Hoyle wrote:
> > On 6/22/06, Ian Barton <lists at manor-farm.org> wrote:
> > I want to have a Wiki that is readable by unauthenticated users, but
> > the only people that can edit it will be authenticated by an external
> > authentication method.  (
> > 
> > Right now, I can use a .htaccess file to create something that
> > requires Apache authentication (using our kerberos infrastructure) for
> > everything, but I can't set it up for unauthenticated reading.
> 
> Though... thinking about this some more... if one could make it so that
> edit/login had to be done via a *particular* page, and then use an
> Apache Location directive to control read-access to that page, and
> include the scripts/httpauth.php file in one's local/config.php
> (with $EnableRemoteUserAuth = 1;) then one could actually use the Apache
> authentication mechanism to do the login.
> 
> So, that leaves the question of whether one can change the action=login
> action to force you to go to a particular page, to force the Apache
> authentication mechanism.  Is this possible?  Checking with my own wiki,
> when one does a action=login, one's URL doesn't change (which of course
> is the normal desired behaviour).
> 
> So, is there a way to do that?

I wonder if putting a (:redirect:) directive in Site.AuthForm would do it.
(I haven't tried this myself.)

Pm




More information about the pmwiki-users mailing list