$r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn't work

2002-08-31 Thread Rodney Broom

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 callback to the error log, which never 
happens if it's set to run in the 'PerlAuthenHandler'. If I change the push_handlers() 
to use 'PerlFixupHandler', then Some::handler() gets called and I see it in the error 
log.

What am I doing wrong? I know it has to be me.

---
Rodney Broom
President, R.Broom Consulting
http://www.rbroom.com/




Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn't work

2002-08-31 Thread Ryan Parr

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...

-- Ryan


- Original Message -
From: Rodney Broom [EMAIL PROTECTED]
To: mod_perl list [EMAIL PROTECTED]
Sent: Saturday, August 31, 2002 6:59 PM
Subject: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn't
work


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 callback to the error log,
which never happens if it's set to run in the 'PerlAuthenHandler'. If I
change the push_handlers() to use 'PerlFixupHandler', then Some::handler()
gets called and I see it in the error log.

What am I doing wrong? I know it has to be me.

---
Rodney Broom
President, R.Broom Consulting
http://www.rbroom.com/






Re: $r-push_handlers('PerlAuthenHandler', 'Some::handler') doesn't work

2002-08-31 Thread Rodney Broom

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 tried that. I've also tried AUTH_REQUIRED, FORBIDDEN, and DONE. Since the 
authentication phase is after the access phase, my guess has been that the return from 
the access phase shouldn't effect the authentication phase. That is, of course, unless 
the access phase returns something like SERVER_ERROR. Right?


---
Rodney Broom
President, R.Broom Consulting
http://www.rbroom.com/