Rodney Broom wrote:
From: Per Einar Ellefsen [EMAIL PROTECTED]
dir_config is the Perl{Set,Add}Var configuration...
Yep, you're right. But I'm sort of grasping at straws at this point.
You can just add that and let your handler decide regardless of the value
of requires...
From: Stas Bekman [EMAIL PROTECTED]
What happens if you do:
$r-set_handlers('PerlAuthenHandler', 'Some::handler');
Either of these:
$r-set_handlers('PerlAuthenHandler', 'Some::handler');
$r-set_handlers('PerlAuthenHandler', \Some::handler);
Yeild:
Can't set_handler with
Rodney Broom wrote:
Hi all,
I'm sure I'm just missing something, but I'm stumped.
I've got an access handler that does some tests and then conditionaly does this:
$r-push_handlers('PerlAuthenHandler', 'Some::handler');
return OK;
Some::handler() starts by printing the current
From: Geoffrey Young [EMAIL PROTECTED]
you probably don't have a Require directive in your httpd.conf for
this particular Location.
You're right, I don't. In fact, I can't. One of the things the access handler does is
to look up the URI in a database, which happens at run time. (The
At 21:05 01.09.2002, Rodney Broom wrote:
Apache will not run the Authen or Authz phases unless there is a
Require directive, no matter what you put onto the mod_perl handler stack.
I sort of thought this myself, so I tried $r-dir_config-add('require',
'valid-user') in the access handler. No
From: Per Einar Ellefsen [EMAIL PROTECTED]
dir_config is the Perl{Set,Add}Var configuration...
Yep, you're right. But I'm sort of grasping at straws at this point.
You can just add that and let your handler decide regardless of the value
of requires...
Yes, but there are side effects:
Rodney Broom wrote:
From: Stas Bekman [EMAIL PROTECTED]
What happens if you do:
$r-set_handlers('PerlAuthenHandler', 'Some::handler');
Either of these:
$r-set_handlers('PerlAuthenHandler', 'Some::handler');
$r-set_handlers('PerlAuthenHandler', \Some::handler);
Yeild:
Rodney Broom wrote:
From: Ryan Parr [EMAIL PROTECTED]
If you have an access handler return OK, then the access handling stops.
Because that handler handled it.
So as far as I know:
$r-push_handlers('PerlAuthenHandler', 'Some::handler');
return DECLINED;
should work...
Yeah, I