14 Feb
2006
14 Feb
'06
12:20 p.m.
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 #!/usr/local/bin/php <? $f = fopen('/somedirectory/php.log','a'); fwrite($f,print_r($_ENV,TRUE)); fclose($f); ?> 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).