On Thu, Jul 3, 2014 at 11:10 AM, Anderson Scouto da Silva <anderson@tubaron.com.br> wrote:
That's exactly what I need to return two records there (two address lists for Mikrotik),
Do you mean "I need to return both Mikrotik-Address-List attributes to mikrotik"? In this case, FR already does that. See the end of the debug log. If mikrotik does NOT see that (i.e. it only sees one Mikrotik-Address-List), then most likely it's mikrotik's fault. You can probably check with tcpdump to be ABSOLUTELY sure that FR DOES return both attributes. -- Fajar
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@lists.freeradius.org [mailto:freeradius-users-bounces+anderson=tubaron.com.br@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@tubaron.com.br> wrote:
Follows the debug attached. The user is "robson_santos@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
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html