multiple fields from rlm_mysql?

Jorge Pereira jpereiran at
Wed Apr 29 19:57:00 CEST 2015


   I would like to know if have some way to do the below example in a
single query. something like a tuple/foreach or otherwise way.

my current solution is:

          My-AVP-A = "%{sql: SELECT field_a FROM tb_my WHERE field_a =
          My-AVP-B = "%{sql: SELECT field_b FROM tb_my WHERE field_b =
          My-AVP-C = "%{sql: SELECT field_c FROM tb_my WHERE field_c =
          My-AVP-D = "%{sql: SELECT field_d FROM tb_my WHERE field_d =

the problem it's because i would like to avoid multiple queries.
Jorge Pereira

More information about the Freeradius-Users mailing list