Converting attributes from hex to ASCII
aaronp at critd.com
Wed Mar 31 01:59:59 CEST 2010
I'm receiving User-Name and various Cisco-AVPair attributes as hex.
The situation is complicated. We have a Calix NAS doing something
called DHCP-triggered RADIUS accounting through a Cisco ASR. This means
neither vendor wants to accept responsibility, and here we are.
I just thought it would be nice if FreeRADIUS supported a perl-like
regex system for manipulating strings. I think I'll have to try to fix
this by jiggering the SQL.
I just wanted to see if anybody else has dealt with something like this.
Alan DeKok wrote:
> 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.
> Alan DeKok.
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users