3.0.x: check regex against multiple instances of attribute

Phil Mayers p.mayers at imperial.ac.uk
Mon Jul 7 14:26:50 CEST 2014


On 07/07/14 12:42, Stefan Winter wrote:

> I used to think there was a special comparison operator for exactly
> that purpose, but I can't for the life of me find it in
> documentation.

=~ used to do this i.e. loop over the attributes, but no longer does; I 
think it got lost in the great unlang rewrite.

You'll have to foreach over the attribute then regexp-compare against 
"%{Foreach-Variable-X}" - you do need to string-ify it, as it's not a 
real attribute.


More information about the Freeradius-Users mailing list