usage of "FR_TOKEN op" parameter to pairmake ?

Chaigneau, Nicolas nicolas.chaigneau at
Mon Feb 3 14:11:20 CET 2014


I'm trying to figure out the purpose of the last parameter to pairmake (FR_TOKEN op).

I assumed it was semantically equivalent to the following unlang syntax :

              The operator used to assign the value of the attribute may be one of the following, with the given meaning.

              =      Add the attribute to the list, if and only if an attribute of the same name is not already present in that list.

              :=     Add the attribute to the list.  If any attribute of the same name is already present in that  list,  its  value  is
                     replaced with the value of the current attribute.

              +=     Add the attribute to the tail of the list, even if attributes of the same name are already present in the list.

But, whatever the operator I'm using (T_OP_EQ, T_OP_ADD or T_OP_SET), it doesn't seem to have any effect. All attributes added through pairmake to the reply vp list are returned to the client anyway.

(I'm using FreeRADIUS 3.0.1)

Did I miss something ?


This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.

More information about the Freeradius-Devel mailing list