Dear Nathan, Thank you very much for quick response and your solution was work successfully. Thanks Again Nimesha On Mon, Feb 5, 2018 at 2:33 PM, Nathan Ward <lists+freeradius@daork.net> wrote:
Hi,
On 5/02/2018, at 9:11 PM, Nimesha Balasuriya <nimesha1987@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
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html