or even easier, if apache is setup for SSI, you can just plunk this into your web page where you want the authenticated username:

<!--#echo var="REMOTE_USER"-->

Ken


Alan DeKok wrote:

"Ayres G.J." <[EMAIL PROTECTED]> 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 http://www.freeradius.org/list/users.html



- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to