php
Dusty Doris
freeradius at mail.doris.cc
Mon Feb 13 02:46:55 CET 2006
> hi
> I want to use php-scripts for AAA, in freeradius.
> if u have any idea tell me
> pezhman Lali
>
Use the rlm_exec module.
eg:
in radiusd.conf add something like this to the modules section. Read the
comments in radiusd.conf they tell you what it all means.
exec authphp {
wait = yes
program = "${raddbdir}/authorize.php"
input_pairs = request
output_pairs = request
}
in authorize section (or wherever you want it) call that module
authorize {
preprocess
...
authphp {
fail = reject
}
files
...
}
Make sure you give the path to php in the script and make it executable
eg:
#!/usr/local/bin/php
<?
...insertcodehere...
?>
More information about the Freeradius-Devel
mailing list