Re: Accessing environment variables set by other modules

2012-10-02 Thread Christoph Gröver
Hello Jeff, Sometimes envvars are set directly into subprocess_env (e.g., handling of SetEnv/SetEnvIf). IOW, subprocess_env is the primary representation. But the REMOTE_USER and HTTP request header variables are a representation of information stored elsewhere (r-user, r-headers_in),

Accessing environment variables set by other modules

2012-10-01 Thread Christoph Gröver
Hello list, I'm trying to access the environment variable REMOTE_USER which is set by the mod_auth_kerb module (at least I think so). I tried it with two different code snippets, both are not working. 1. const char *remote = apr_table_get(r-subprocess_env, REMOTE_USER); 2. char *remote =

Re: Accessing environment variables set by other modules

2012-10-01 Thread Daniel Gruno
On 10/01/2012 12:03 PM, Christoph Gröver wrote: Hello list, I'm trying to access the environment variable REMOTE_USER which is set by the mod_auth_kerb module (at least I think so). I tried it with two different code snippets, both are not working. 1. const char *remote =

Re: Accessing environment variables set by other modules

2012-10-01 Thread Christoph Gröver
Hello Daniel, Just a quick suggestion; Have you tried r-user ? Tak! Really a good suggestion. r-user is set if it's run in the fixup hook. I still would like to know if it's possible to access variables set by other modules, but for the current development it'll be sufficient. With kind

Re: Accessing environment variables set by other modules

2012-10-01 Thread Jeff Trawick
On Mon, Oct 1, 2012 at 7:34 AM, Christoph Gröver gro...@sitepark.com wrote: Hello Daniel, Just a quick suggestion; Have you tried r-user ? Tak! Really a good suggestion. r-user is set if it's run in the fixup hook. I still would like to know if it's possible to access variables set by