freeradius and php

Dusty Doris freeradius at
Tue Feb 14 18:20:30 CET 2006

On Tue, 14 Feb 2006, Pezhman Lali wrote:

> how I can send Username,password,.... to exec program,
> and in php script, how return access-accept back to
> freeradius.
$_ENV contains everything in the packet.

Try this.

$ touch /somedirectory/php.log
$ chown whateveruser:whatevergroup /somedirectory/php.log

$ vi yourphpfile.php
$f = fopen('/somedirectory/php.log','a');

Then send a radius packet

You can fail with exit(1); and that will send an access-reject.

Or, you can send back request items or reply items and use those within 
freeradius (such as the users file).

More information about the Freeradius-Devel mailing list