RES: Two or more Address Lists

Anderson Scouto da Silva anderson at tubaron.com.br
Thu Jul 3 06:10:47 CEST 2014


That's exactly what I need to return two records there (two address lists
for Mikrotik), so I thought using "+ =" return both as a response to
Mikrotik. Definitely no way to do this?

-----Mensagem original-----
De: freeradius-users-bounces+anderson=tubaron.com.br at lists.freeradius.org
[mailto:freeradius-users-bounces+anderson=tubaron.com.br at lists.freeradius.or
g] Em nome de Fajar A. Nugraha
Enviada em: quinta-feira, 3 de julho de 2014 00:49
Para: FreeRadius users mailing list
Assunto: Re: Two or more Address Lists

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
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html



More information about the Freeradius-Users mailing list