In message <[EMAIL PROTECTED]>, Stas Bekman writes:
If the logic has to be more flexible, you could get_handlers(), look at who's registered and then decide based on that whether to return OK or DECLINED?
In Apache::AuthenDumb, how do I go from the CODE refs returned
from $r->get_handlers('PerlAuthenHandler') to find whether I'm stacked
between 'Apache::AuthenCache2::handler' and 'Apache::AuthenCache2::manage_cache'?
$r->log->debug("Apache::AuthenDumb: $user authenticated"); if (MP2) { my @handlers = @{ $r->get_handlers('PerlAuthenHandler') || [] }; return (CACHE_SANDWICHED) ? Apache::DECLINED : Apache::OK; } else { return Apache::Constants::OK; }
Hmm, I guess some B:: module could be of use. But as Geoff replied you may not need it.
__________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
-- Report problems: http://perl.apache.org/bugs/ Mail list info: http://perl.apache.org/maillist/modperl.html List etiquette: http://perl.apache.org/maillist/email-etiquette.html