Re: http-authentication on postgresql

2011-03-23 Thread Perrin Harkins
Have you tried loading Apache::AuthDBI first? It looks confused about where to find the sub you specified. - Perrin On Tue, Mar 22, 2011 at 11:37 AM, Michel Jansen wrote: > > The Apache::AuthDBI package has changed Checkout the errors below! > > [Tue Mar 22 16:35:50 2011] [error] [client 19

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

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 (); >

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

[ANNOUNCE] Apache2::AuthAny

2011-03-23 Thread Kim Goldov
I’ve created a module we are calling Apache2::AuthAny. The module utilizes other authentication modules or internal code, and provides a single “GATE” page where the end user can choose between authentication mechanisms. AuthAny currently provides login to the “Distribute System”, which is used to

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