Some attributes are showing hexa values

Nathan Ward lists+freeradius at daork.net
Mon Feb 5 10:03:33 CET 2018


Hi,

> On 5/02/2018, at 9:11 PM, Nimesha Balasuriya <nimesha1987 at gmail.com> wrote:
> 
> Dear Team,
> 
> I am using freeradius version 3 and there is some issue i am facing once
> write the some radius attributes to mariadb.
> 
> I am getting hexa values to specific attribute call
> (Chargeable-User-Identity) 0x123456789.

Actually you’ll be getting octets, which is how this attribute is defined. FR prints octets attributes as hex in debug etc. which is I presume where you are seeing this - but you haven’t provided any other info so it’s hard to tell exactly what you’re doing or trying to do.

> How can i convert this to correct this hex value to normal ascii words.

Try %{string:Chargeable-User-Identity}

You may have trouble with unprintable characters, newlines, etc.

Your example is 9 hex digits, which is 3.5 octets, so, it’s not really clear what you want or how you’d convert that to “normal ascii words”, but, I think this is what you’re asking for.

--
Nathan Ward




More information about the Freeradius-Users mailing list