FreeRadius with perl, Unknown attribute: Acct-Session-ID

Alan DeKok aland at deployingradius.com
Fri Apr 30 15:24:29 CEST 2021


On Apr 30, 2021, at 9:21 AM, Fatih Boy <fatih at encbulut.com> wrote:
> I’m trying to use FreeRadius server with perl module. I've install freeradius 3.0.13

  Why?  3.0.21 has been out for a year.

  Please use the packages available at http://networkradius.com

> on a clean CentOS 7 with perl module. Then enabled perl module by executing following command:
> ln -s /etc/raddb/mods-available/perl /etc/raddb/mods-enabled/perl

  OK.

> Without making any further changes I've run freeradius from commandline using:
> radiusd -X
> Then I got the following error;
> /etc/raddb/policy.d/accounting[42]: Failed parsing expanded string:
> /etc/raddb/policy.d/accounting[42]: %{md5:%{1},%{Acct-Session-ID}}
> /etc/raddb/policy.d/accounting[42]:              ^ Unknown attribute

  If you get that error on the default install, then someone (not us) broke the packages you're using.

  Use 3.0.21, and/or the packages from http://networkradius.com

> Note that; After getting error, I've also add following entry to /etc/raddb/users file. Nothing changed...
> DEFAULT         Auth-type := perl

  That won't change an error in an unrelated file.

> I also add entries to file /etc/raddb/sites-available/default described at https://wiki.freeradius.org/modules/Rlm_perl
> 
> Any ideas on what's wrong with my configuration? Am I missing some installation/configuration steps for perl module?

  What do you want to do with the Perl module?

  And if the server doesn't start due to an error in /etc/raddb/policy.d/accounting, then it's impossible to test the changes you made to enable Perl.

  Alan DeKok.




More information about the Freeradius-Users mailing list