Converting attributes from hex to ASCII
aland at deployingradius.com
Wed Mar 31 00:45:32 CEST 2010
Aaron Paetznick wrote:
> I am receiving certain accounting attributes as hex encoded strings,
Why? Which attributes are they?
> I would like to convert them back to cleartext ASCII before sending them
> to MySQL.
> I can't simply update the SQL with UNHEX() functions, as not all of the
> requests are hex encoded this way.
It sounds like the NAS is broken. Not that I'm surprised...
> If I could use perl, I would do something like this:
Why not use Perl? The server doesn't have generic string handling
functions, and I don't see the need to invent yet another language.
More information about the Freeradius-Users