Radclient & PHP
Patric
patricrt at gmail.com
Thu Apr 2 08:14:48 CEST 2009
AHMED KHIDR wrote:
> Hii All ,
>
> Please Any one have an idea how to make a PHP code to run Radclient
> in order to disconnect users ,
>
> Thanks
$Command = 'echo -e "User-Name=\"'.$UserName.'\", Framed-IP-Address =
\"'.$FramedIP.'\", NAS-IP-Address = \"'.$NASIP.'\"" | radclient -n 1 -r
3 -x '.$RadiusIP.' disconnect '.$RadiusPassword.' 2>&1';
$CommandResult = shell_exec($Command);
$CommandResult will hold the entire result.
HTH
Patric
More information about the Freeradius-Users
mailing list