Loading ...
Sorry, an error occurred while loading the content.

Re: [mp2] PerlAccessHandler not overriding PerlAuthenHandler

Expand Messages
  • Stas Bekman
    ... 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.
    Message 1 of 3 , Jan 30, 2005
    • 0 Attachment
      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@... http://use.perl.org http://apacheweek.com
      http://modperlbook.org http://apache.org http://ticketmaster.com
    Your message has been successfully submitted and would be delivered to recipients shortly.