First of all, let me introduce myself. My name is Ricardo Vieitez and
I am from Patagonia in Argentina. I also want to say happy new year to
all of you.
I am writing here because I am trying to extend mod_suphp to work
together with mod_vhost_ldap. For this aim, I have to be able to tell
mod_suphp the user and group the script is supposed to run as.
I have written a pretty basic function, that is then declared as an
optional function that should do this I need. The code below:
static void suphp_user_group_external(request_rec *r, const char
*arg1, const char *arg2)
{
suphp_conf *cfg = ap_get_module_config(r->per_dir_config, &suphp_module);
cfg->target_user = apr_pstrdup(r->pool, arg1);
cfg->target_group = apr_pstrdup(r->pool, arg2);
}
However, my problem is that r->per_dir_config doesn't point to where I
need it to: it doesn't reach the handler.
I seen though that mconfig in suphp_handle_cmd_user_group does behave
exactly as one would expect. Therefore, what I'm asking for is how I
can get a copy of mconfig (please remember that I will call this
optional function from an external file, so all the procedures must
occur inside it, mconfig cannot be passed as an argument)
If you don't understand precisely what I mean, please do not hesitate
to ask for a clarification, and I will happily provide you with more
details.
Thanks in advance,
Ricardo
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp