Changing Class attribute from octets to string

Alan DeKok aland at
Mon Mar 31 17:42:37 CEST 2014

Antonio Modesto Amaral Sousa wrote:
> I need to use the class attribute in order to assign the user to a
> service plan in a DPI box. The Class attribute is been carried in the
> acct packets, the problem is that Freeradius is converting it to
> hexadecimal, I've changed the type from octets to string and restarted
> the service but it continued to be converted to hex. What can I do to
> get this attribute to be carried in plain text format?

  Use:  %{string:Class}

  It will print out the Class as if it was of type "string".

  In general, it's a bad idea to edit the dictionaries.

  Alan DeKok.

More information about the Freeradius-Users mailing list