httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Gruno <rum...@cord.dk>
Subject Re: Accessing environment variables set by other modules
Date Mon, 01 Oct 2012 10:11:59 GMT
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 = apr_table_get(r->subprocess_env, "REMOTE_USER");
> 
> 2. char *remote = get_env("REMOTE_USER");
> 
> I also changed the hook that I have my code registered in, so that it
> runs later than the mod_auth_kerb.
> But still "REMOTE_USER" appears to be always empty.
> 
> What am I doing wrong? Someone point me in the right direction?
> 
> Thank you for your time.
> 
> Greetings
> 
> 
Just a quick suggestion; Have you tried r->user ?

With regards,
Daniel.


Mime
View raw message