Can translation of RADIUS packet attributes (e.g., NAS-Port-Type) be configured?

Alan DeKok aland at deployingradius.com
Wed Aug 17 15:37:50 CEST 2011


Jack Patmos wrote:
> I am attempting to write accounting data to Postgres database. In the
> database the NAS port type from the request is stored as the integer
> value that defines the port type in RFC2865 (e.g., 19 - 'Wireless -
> IEEE 802.11'). The database table is fixed and cannot be changed.
...
> Obviously, I can't insert 'Wireless-802.11' into an integer field in
> the database. Is there away of disabling this lookup so that
> FreeRADIUS does not translate these values when it receives a packet,
> or am I going to have to code my own reverse lookup into my accounting
> module?

  Yes, this is documented.  See "man unlang".  %{NAS-Port-Type#}

  Alan DeKok.



More information about the Freeradius-Users mailing list