conditional variable assignment

Marlon Duksa mduksa at gmail.com
Fri Aug 7 21:09:52 CEST 2009


Is all this explained anywhere?

On Fri, Aug 7, 2009 at 12:03 PM, Alan Buxey <A.L.M.Buxey at lboro.ac.uk> wrote:

> 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
>
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20090807/cb122313/attachment.html>


More information about the Freeradius-Users mailing list