Re: Using add_config to trigger authentication

2011-03-23 Thread Andrew Green
Hi all, On 23 Mar 2011, at 20:38, I wrote: > Actually, even the following causes a segfault: > > $r->push_handlers(PerlMapToStorageHandler => Apache2::Const::DECLINED); Nope, I'm wrong -- that segfaults if I call it from a PerlPostReadRequestHandler, but not from a PerlTransHandler. I'd moved

Re: Using add_config to trigger authentication

2011-03-23 Thread Andrew Green
Hi Torsten, On 23 Mar 2011, at 15:02, Torsten Förtsch wrote: >> Interestingly, adding a PerlMapToStorageHandler caused a segfault > > Does your code by chance return Apache2::Const::OK? If so, try to change it > to > DECLINED. Actually, even the following causes a segfault: $r->push_handlers

Re: Using add_config to trigger authentication

2011-03-23 Thread Torsten Förtsch
On Wednesday, March 23, 2011 15:26:48 Andrew Green wrote: > Interestingly, adding a PerlMapToStorageHandler caused a segfault Does your code by chance return Apache2::Const::OK? If so, try to change it to DECLINED. A PerlMapToStorageHandler returning OK prevents the core map2storage handler to be

Re: Using add_config to trigger authentication

2011-03-23 Thread Andrew Green
Hi, On 23 Mar 2011, at 13:42, Torsten Förtsch wrote: >> I'm putting together a mp2 application where I'd like to trigger >> authentication from within a PerlTransHandler, and not from httpd.conf. > > This won't work in a PerlTransHandler because between trans and maptostorage > the request conf

Re: Using add_config to trigger authentication

2011-03-23 Thread Torsten Förtsch
On Wednesday, March 23, 2011 14:24:11 Andrew Green wrote: > I'm putting together a mp2 application where I'd like to trigger > authentication from within a PerlTransHandler, and not from httpd.conf. > > As I understand it, the following should work: > > - > > use Apache2::RequestUtil (); >

Using add_config to trigger authentication

2011-03-23 Thread Andrew Green
Hi all, I'm putting together a mp2 application where I'd like to trigger authentication from within a PerlTransHandler, and not from httpd.conf. As I understand it, the following should work: - use Apache2::RequestUtil (); $r->add_config(['require valid-user']); $r->push_handlers(PerlAut