Radclient & PHP
Marinko Tarlac
mangia81 at gmail.com
Thu Apr 2 09:23:33 CEST 2009
I don't know why bot sometimes radclient uses up to 30% of CPU....
radius.log is empty....
On Thu, Apr 2, 2009 at 8:14 AM, Patric <patricrt at gmail.com> wrote:
> 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
>
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20090402/e5d38aea/attachment.html>
More information about the Freeradius-Users
mailing list