mod_auth_radius values

Ken A ka at
Thu Aug 18 20:24:52 CEST 2005

Try the environment variable REMOTE_USER

      print "Content-type: text/html\n\n";
      foreach $key (keys %ENV) {
           print "$key --> $ENV{$key}<br>";


Alan DeKok wrote:

> "Ayres G.J." <G.J.Ayres at> wrote:
>>	I am developing a web system that authenticates users to a web site
>>through free radius using the mod_auth_radius module for apache. It all
>>works fine, but I would like to get the username of the user that has
>>authenticated for use on pages once they have authenticated. 
>   It's in the HTTP headers.  The username & password are sent in every
> request.
>>I am not sure how to go about this. I guess that the values are set in a
>>cookie or in the HTTP Headers by mod_auth_radius? Does anyone know a way I
>>could retrieve the values, either through HTML or PHP?
>   Not HTML.  Maybe PHP, if it allows you to get HTTP headers.  See the
> module source code for where the headers are, and the PHP docs for how
> to get at them.
>   Alan DeKok.
> - 
> List info/subscribe/unsubscribe? See

More information about the Freeradius-Users mailing list