Some attributes are showing hexa values
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. How can i convert this to correct this hex value to normal ascii words. Thank you ! Best Regards, Nimesha
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
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
Dear Team, I am using freeradius version 3.0.4 as my radius proxy and version 2.2.0 as my accounting servers. May I know is there any compatibility issue with these two versions to work together. Reason why i am asking is "/var/log/radius/detail-virtual-server.work" file in radius proxy is growing rapidly without proxing the accounting files to the accounting server. It is not unlinking after process the data. Please help me to solve this. Thank you vary much !!! On Mon, Feb 5, 2018 at 1:41 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.
How can i convert this to correct this hex value to normal ascii words.
Thank you !
Best Regards, Nimesha
On May 1, 2018, at 7:26 AM, Nimesha Balasuriya <nimesha1987@gmail.com> wrote:
I am using freeradius version 3.0.4 as my radius proxy and version 2.2.0 as my accounting servers. May I know is there any compatibility issue with these two versions to work together.
No.
Reason why i am asking is "/var/log/radius/detail-virtual-server.work" file in radius proxy is growing rapidly without proxing the accounting files to the accounting server. It is not unlinking after process the data. Please help me to solve this.
Upgrade to 3.0.17. We're not going to debug issues which were found and fixed 5 years ago. Alan DeKok.
participants (3)
-
Alan DeKok -
Nathan Ward -
Nimesha Balasuriya