Re: How I pass a information ?

2009-07-22 Thread ricardo13
Hi, Eric Covener wrote: On Tue, Jul 21, 2009 at 10:17 AM, ricardo13ricardoogra...@gmail.com wrote: Hi, I would like to konw how I pass information to other machine and between modules. For example: module A (mod_rewrite) in Server A forward request to module b (worker.c) in

RE: Dynamicly insert 'require' into request

2009-07-22 Thread Ben Davies
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 property to contain the username, meaning that the sending of a 403

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 property

Re: Dynamicly insert 'require' into request

2009-07-22 Thread Ray Morris
This leads me to a problem: how do I turn off a hook, Whatever it is I need to do, I need to do in the access() hook. In access, set a variable. Call it skipauth. Set it to 1 if you need to skip authorization. In auth, first check skipauth. If it's true, skip your authorization and

RE: Dynamicly insert 'require' into request

2009-07-22 Thread Ben Davies
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. Ah, but from what I can work out, before the check_user() hook fires, the 403 is sent to the client because of the presence of the require. I can't have

RE: Dynamicly insert 'require' into request

2009-07-22 Thread Ben Davies
First of all, thank you to everyone who has replied. Every reply has been enlightening and helpful. I'm clearly a novice to module development, and I only ever post when I am truly stuck and need help, and only when I have exhausted all possible avenues (I own all of the books mentioned regularly