Attribute filtering
Alan Batie
alan at peak.org
Thu Feb 11 23:24:28 CET 2016
On 2/11/16 1:43 PM, Alan DeKok wrote:
> if (test user) {
> update reply {
> Framed-IP-Address !* ANY
> }
> update control {
> Pool-Name := "pool"
> }
>
> sqlippool
> }
Doh! I forgot the update reply part; in my case:
if (&control:Pool-Name && &control:Pool-Name != "") {
update reply {
Framed-IP-Address !* ANY
}
}
Thanks!
>> mods-config/attr_filter/framed_ip_address:
>>
>> if (&control:Pool-Nmae && &control:Pool-Name != "") {
>> Framed-IP-Address !* ANY
>> }
>
> Which is "unlang" syntax. The attr_filter module takes a different formant. See the examples shipped with the server.
I was trying to expand on those examples, but clearly that wasn't the
right approach ;-)
More information about the Freeradius-Users
mailing list