Filter multivalued attributes in rlm_sql

Alan DeKok aland at deployingradius.com
Tue Jul 13 10:53:55 CEST 2010


JUND wrote:
> When I use :
> 
> sql_user_name = "%{reply:Callback-Number}"
>  
> I always get the first value of the Callback-Number,

  That's the way it works.  See "man unlang" for how to reference a
specific variable.

> but I would like to
> use only the one starting with “TEST=”. Is there a way to filter a
> multivalued atytribute to use it for the sql_user_name?

  Not really, no.  I suggest adding the data into an *additional*
attribute, and using that.

  Alan DeKok.



More information about the Freeradius-Users mailing list