RE: Dynamicly insert 'require' into request

2009-07-22 Thread Ben Davies
nt. Saying that, I will reduce my postings in future to a few succinct questions. Cheers! Ben Davies -Original Message- From: Ray Morris [mailto:supp...@bettercgi.com] Sent: 22 July 2009 14:36 To: modules-dev@httpd.apache.org Subject: Re: Dynamicly insert 'require' into req

Re: Dynamicly insert 'require' into request

2009-07-22 Thread Ray Morris
mment if this > sounds > like crazy talk? Have I made a massive assumption regarding the > returning of > the 403 header before check_user(), for example? > > Cheers! > > Ben > > > -Original Message- > From: Tom Evans [mailto:tevans...@googlemail.

RE: Dynamicly insert 'require' into request

2009-07-22 Thread Houser, Rick
eyes.com] Sent: Wednesday, July 22, 2009 8:28 AM To: modules-dev@httpd.apache.org Subject: RE: Dynamicly insert 'require' into request > One solution would be to set a note for your hook in an earlier stage, > and then return DECLINED from your handler when you detect that note. A

RE: Dynamicly insert 'require' into request

2009-07-22 Thread Ben Davies
:tevans...@googlemail.com] Sent: 22 July 2009 12:24 To: modules-dev@httpd.apache.org Subject: RE: Dynamicly insert 'require' into request On Wed, 2009-07-22 at 10:43 +0100, Ben Davies wrote: > Okay, so upon further inspection, it appears that there may not be an > equivalent functi

Re: Dynamicly insert 'require' into request

2009-07-22 Thread Ray Morris
require > entry > from the require array. Has anyone had any experience with this? If > so, > could you comment on techniques? > > Cheers, > > Ben > > > -----Original Message- > From: Ben Davies [mailto:bdav...@stickyeyes.com] > Sent: 21 July 2009 14:49 > T

RE: Dynamicly insert 'require' into request

2009-07-22 Thread Tom Evans
On Wed, 2009-07-22 at 10:43 +0100, Ben Davies wrote: > Okay, so upon further inspection, it appears that there may not be an > equivalent function for mod_perls set_handlers(). > > This leads me to a problem: how do I "turn off" a hook, especially, as the > check_user() hook expects the r->user pr

RE: Dynamicly insert 'require' into request

2009-07-22 Thread Ben Davies
on techniques? Cheers, Ben -Original Message- From: Ben Davies [mailto:bdav...@stickyeyes.com] Sent: 21 July 2009 14:49 To: modules-dev@httpd.apache.org Subject: RE: Dynamicly insert 'require' into request > mod_perl just exposes the API to Perl programmers. Translate their

RE: Dynamicly insert 'require' into request

2009-07-21 Thread Ben Davies
ick Kew [mailto:n...@apache.org] Sent: 21 July 2009 14:36 To: modules-dev@httpd.apache.org Subject: Re: Dynamicly insert 'require' into request On 21 Jul 2009, at 13:44, Ben Davies wrote: > I've just found something that does pretty much what I want but with > mod_perl. For

Re: Dynamicly insert 'require' into request

2009-07-21 Thread Nick Kew
On 21 Jul 2009, at 13:44, Ben Davies wrote: I've just found something that does pretty much what I want but with mod_perl. For an example, see 13.5 in the following chapter (warning: link is a PDF) mod_perl just exposes the API to Perl programmers. Translate their example to C and it'll

RE: Dynamicly insert 'require' into request

2009-07-21 Thread Ben Davies
I've just found something that does pretty much what I want but with mod_perl. For an example, see 13.5 in the following chapter (warning: link is a PDF) http://www.modperlcookbook.org/chapters/ch13.pdf I thought that I might be able to control the flow from within the access hook! Anyo

Dynamicly insert 'require' into request

2009-07-21 Thread Ben Davies
Hi Everybody, Quick question: does anyone have any examples of implementing conditional authentication in a module? I'd like my module to serve a file if public access is granted, and challenge if not. I thought that it might be possible to dynamically insert a require statement into a request