conditional variable assignment

Alan Buxey A.L.M.Buxey at lboro.ac.uk
Fri Aug 7 21:03:20 CEST 2009


Hi,

> And here is mu unlang section:
> 
> DEFAULT     User-Name =~ "^([aA-zZ]+)-([aA-zZ]+)$",  Cleartext-Password :=
> "csetestp"
>             Alc-Subsc-ID-Str := "%{NAS-Port-Id}",
>             Alc-Subsc-Prof-Str := "%{1}",
>             Alc-SLA-Prof-Str := "%{2}",
>             Alc-MSAP-Serv-Id := "100",
>             Alc-MSAP-Policy  := "msaps",
>             Alc-Default-Router := 20.0.0.1,
>             Framed-IP-Netmask := 255.255.0.0,
>             Session-Timeout := 600,
>             if (Alc-Subsc-Prof-Str == basic) {
>                 Framed-IP-Address := 21.0.0.1,
>             }

and what makes you think you can do this (ie put unlang into a random
file)?

unlang sits nicely in a virtual-server config or within a module

alan




More information about the Freeradius-Users mailing list