Freeradius proxy: rewriting response messages

Simone Vendemia metal at cuneo.linux.it
Thu May 8 17:28:23 CEST 2008


2008/5/8 Ivan Kalik <tnt at kalik.net>:
> Read the description of unlang:
>
>  http://www.freeradius.org/radiusd/man/unlang.html

The syntax i was using was broken, now everything works fine with

if (proxy-reply:Framed-IP-Address) {
       update proxy-reply {
             Framed-IP-Address := "%{sql:SELECT Value FROM `radreply`
WHERE UserName ='%{User-Name}' AND Attribute = 'Framed-IP-Address'}"
             Framed-Route := "%{sql:SELECT Value FROM `radreply` WHERE
UserName ='%{User-Name}' AND Attribute = 'Framed-Route'}"
       }
}

Thank you.



More information about the Freeradius-Users mailing list