regex matching can be convinced to be TRUE if you're insistive enough?

Brian Candler B.Candler at pobox.com
Wed Jun 8 12:13:16 CEST 2011


On Fri, May 27, 2011 at 01:10:59PM +0200, Alan DeKok wrote:
> $ git pull origin master:master
> 
> ... build
> 
> $ man unlang

Very neat, thank you. This sort of iteration for vendor attributes like
Cisco-AVPair is extremely helpful.

The key operations will be things like:

1. replace the (current iteration) attribute
2. delete the (current iteration) attribute

You can do these already, more or less, using

foreach reply:Foo {
   update reply {
       Foo -= "%{Foreach-Variable-0}"
       Foo += "replacement value"
   }
}

That is, it will be fine unless you have multiple attributes with identical
values.

Cheers,

Brian.



More information about the Freeradius-Devel mailing list