Updates to "unlang"

Arran Cudbard-Bell a.cudbardb at freeradius.org
Sat Dec 12 15:24:10 CET 2015


> On 12 Dec 2015, at 06:55, Kostas Kalevras <kkalev at noc.ntua.gr> wrote:
> 
> On 11/12/2015 3:55 μμ, Alan DeKok wrote:
>> 
>>   So the question is... what else would you like to see in "unlang"?
>> 
>> 
>>   Ideas?  Comments?
>> 
>>   Alan DeKok.
>> 
>> 
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
> 
> I would like to see a new operator === which will return true if there is a single match in a list context. That way one can run a check such as:
> 
> if (NAS-IP-Address === &control:NAS-IP-Address) {
>    update reply {
>        Reply-Message = "NAS IP Address not allowed"
>    }
>    reject
> }


if (NAS-IP-Address == &control:NAS-IP-Address[*]) {

}

already exists in the v3.1.x branch.  Works with the regex operator too, and both sides can be multivalued.

-Arran

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS development team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 872 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-devel/attachments/20151212/592b7a07/attachment.sig>


More information about the Freeradius-Devel mailing list