3.0.x: check regex against multiple instances of attribute

A.L.M.Buxey at lboro.ac.uk A.L.M.Buxey at lboro.ac.uk
Mon Jul 7 14:35:14 CEST 2014


Hi,

> =~ 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.

cant you also do that 'pulling magical blob that lists all groups in one call' method too?
(cant recall the thread on this list that has the example but i'm sure there was plenty
of interest/excitement about it!)

alan


More information about the Freeradius-Users mailing list