httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Covener" <cove...@gmail.com>
Subject Re: Clarification on how check_user_id hook works
Date Tue, 10 Oct 2006 02:28:10 GMT
On 10/9/06, Javier Sagrera <sagrera@lycos.com> wrote:
> Module 1 (x.so) writes in the error_log file a simple message and returns
> "DECLINED", this is register with the APR_HOOK_MIDDLE

This is the same position as mod_auth, so you can't have any
expectation on when Module 1/mod_auth run with respect to eachother

> Module 2 (r_d.so) just returns "DECLINED" to allow other functions in the
> chain to be call, but is register with APR_HOOK_FIRST

> The issue i see and i can't really understand is that the check function in
> the first module is only called if the second module is registered with
> HOOK_FIRsT.

Look at the 2nd and 3rd arguments to ap_hook_check_user_id() if you
want "Module 1" to run in some predictable order relative to mod_auth.

-- 
Eric Covener
covener@gmail.com

Mime
View raw message