4 May
2011
4 May
'11
7:41 a.m.
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.