unlang: copy a string attribute to an octets attribute without escaping ?

Chaigneau, Nicolas nicolas.chaigneau at capgemini.com
Thu May 22 18:19:28 CEST 2014


Is it possible in unlang to copy the value of a "string" attribute into an "octets" attribute, without escaping taking effect ?

I'm doing something like :

update control {
  Attr-Octets = "%{control:Attr-String}"

Attr-String start with a 0x01 (escaped to \001).
-> Attr-Octets gets "0x5c303031..." (instead of what I would like: "0x01...")

Is there a way to force the assignement without the string being escaped ?

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-Users mailing list