Condition-Based Accounting Proxy
Alan DeKok
aland at deployingradius.com
Wed May 4 13:41:17 CEST 2011
eitarad wrote:
> I Would like to achieve the following:
>
> 1. Accounting request packet received by the server
> 2. The server checks if the User Name in the request exists in a MySQL
> database
Write an SQL "select" statement.
preacct {
...
if ("%{sql:SELECT ... %{User-Name} ...}") {
update control {
Proxy-To-Realm := "foo"
}
}
...
}
There's no need for any script.
See "man unlang" for more details.
Alan DeKok.
More information about the Freeradius-Devel
mailing list