Re: [mp2] PerlAccessHandler not overriding PerlAuthenHandler

[prev] [thread] [next] [Date index for 2005/01/31]

From: Stas Bekman
Subject: Re: [mp2] PerlAccessHandler not overriding PerlAuthenHandler
Date: 04:05 on 31 Jan 2005
Geoffrey Young wrote:

>>$r->set_handlers(PerlAuthenHandler => [\&OK]);
> 
> 
> this is the correct approach - OK means "I authenticated" and lets apache
> know that it should _not_ call mod_auth.
> 
> however, the symbol OK doesn't exist in your setup, so you are essentially
> passing undef.  the proper solution is
> 
>   $r->set_handlers(PerlAuthenHandler => \&Apache::OK);

I suppose because angie is using the mp1 legacy code via Apache::compat:

   use Apache::Constants qw(OK);

why not drop that and use the pure mp2 API? i.e. Apache::Const

        -- 
        __________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxx.xxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Re: [mp2] PerlAccessHandler not overriding PerlAuthenHandler
Stas Bekman 04:05 on 31 Jan 2005

Generated at 12:39 on 05 Feb 2005 by mariachi v0.52