Two or more Address Lists
Fajar A. Nugraha
list at fajar.net
Thu Jul 3 05:48:47 CEST 2014
On Thu, Jul 3, 2014 at 10:20 AM, Anderson Scouto da Silva
<anderson at tubaron.com.br> wrote:
> Follows the debug attached. The user is "robson_santos at tubaron.net", he has
> to return two lists for Mikrotik, "liberado-cadastro-atayo-confirmado" and
> "bloqueio-arquivado-atayo", but the user only enter Mikrotik to list
> "liberado-cadastro-atayo-confirmado". Order by ID ASC "
> liberado-cadastro-atayo-confirmado" is the first list in the database.
You need to ask better questions for others to be able to understand
what you need. For example:
Q: Can I have FR return only ONE reply attribute for a particular
user, when radreply table has two records for that user?
... and the answer to that question would generally be "No".
There is, however, a way to achieve a similar result IF:
- you use " :=" operator
- you use the same attribute name in both records
The ":=" operator will replace reply attribute for the same name,
making only one exist (see the docs included in your installation, or
https://github.com/FreeRADIUS/freeradius-server/blob/v2.x.x/doc/rlm_sql)
Is that what you wanted to ask?
--
Fajar
More information about the Freeradius-Users
mailing list