Re: [mp2] Apache::AuthCookie

[prev] [thread] [next] [Date index for 2005/03/18]

From: Barry Hoggard
Subject: Re: [mp2] Apache::AuthCookie
Date: 18:29 on 18 Mar 2005
On Mar 18, 2005, at 9:02 AM, Mike Whitaker wrote:

> Getting an error from mod_per/Apache2 as soon as I try and access an 
> protected page:
>
> 'failed to resolve handler Foo::Auth'
>
> I'm assuming this means something more than 'can't find Foo::Auth in 
> @INC', since another Foo:: module (in use as an OutputFilter) gets 
> picked up fine.
>
> WHat'm I missing?
>
> config snippet
>
> 	PerlModule Foo::Auth
> 	
> 	PerlSetVar FooPath /
> 	PerlSetVar FooExpires +5d
> 	PerlSetVar FooLoginScript /login.pl
> 	PerlSetVar AuthCookieDebug 1
> 	
> 	<Location />
> 	AuthName Foo
> 	AuthType Foo::Auth
> 	PerlAuthenHandler Foo::Auth->authenticate
> 	PerlAuthzHandler Foo::Auth->authorize
> 	
> 	require valid-user	
> 	</Location>
> 	
> 	<Location /LOGIN>
> 	AuthName Foo
> 	AuthType Foo::Auth
> 	SetHandler perl-script
> 	PerlHandler Foo::Auth->login
> 	</Location>


I have a similar setup on MP2, but I don't have protected pages at the 
root /.  I'm also doing a use Foo::Auth in a startup.pl called with 
PerlRequire rather than using PerlModule.  I don't know if the former 
is preferred, but it's working for me.



Barry

[mp2] Apache::AuthCookie
Mike Whitaker 14:02 on 18 Mar 2005

Re: [mp2] Apache::AuthCookie
Barry Hoggard 18:29 on 18 Mar 2005

Generated at 11:30 on 21 Mar 2005 by mariachi v0.52