DEAFAULT keyword??

Marlon Duksa mduksa at gmail.com
Thu Aug 6 00:55:20 CEST 2009


I put 'fall-through' before DEFAULT NAS-Port-Id....  and now it works.
But I still do not understand what does the DEAFULT keyword do?
Thanks,
Marlon

On Wed, Aug 5, 2009 at 3:51 PM, Marlon Duksa <mduksa at gmail.com> wrote:

> Hi - I've been reading through WiKi  pages but still not clear. I need to
> evaluate two attributes and I'm doing this with the =~ operator. But the
> second attribute is not evaluated but instead returned as reg expr (exactly
> as stated below)
>
>
>
> DEFAULT     *User-Name =~ "^([aA-zZ]+)-([aA-zZ]+)$", Auth-Type := Local,
> User-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",
>             *NAS-Port-Id =~ "^([^:]+):", *
>             Alc-MSAP-Interface := "port-%{1}"
>
> Why is NAS-Port-ID returned, according to operators is should not be. I'm
> trying to evaluate NAS-Port attr and then based on the results assign a
> value to the last attribute: Alc-MSAP-Interface.
>
> If I put a DEFAULT keyword with credentials (Auth-Type, User-Pswd), infront
> of NAS-Port-Id, then, NAS-Port-Id and Alc-MSAP-Interfaces are not returned
> at all.
>
> What is the significance of this 'DEFAULT' keyword in the 'users' file?
> Thanks,
> Marlon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20090805/5133ac66/attachment.html>


More information about the Freeradius-Users mailing list