can't find new custom module (shared library object file)

Bill Schoolfield bill at billmax.com
Thu Nov 7 03:18:12 CET 2013


I built a customized version of the rlm_detail module. It was compiled 
externally against a version of freeradius built from source. The 
version I'm using is 2.1.12 as this version matches that of the 
installed YUM package for centos 6.x.

On another centos host (same version, 64 bit etc), I installed the 
packaged version of FR (via yum). Then I copied the rlm_billmax.so to 
/usr/lib64/freeradius, placed the billmax configure file in the modules 
directory and added the billmax directive to the default site file 
(accounting section) and yet freeradius fails to load/find the library 
file. I have checked the file permissions so that isn't it.

What am I missing?

Here is the last part of the radiusd -X log:

> Wed Nov  6 21:04:26 2013 : Debug:  Module: Linked to module rlm_acct_unique
> Wed Nov  6 21:04:26 2013 : Debug:  Module: Instantiating module "acct_unique" from file /etc/raddb/modules/acct_unique
> Wed Nov  6 21:04:26 2013 : Debug:   acct_unique {
> Wed Nov  6 21:04:26 2013 : Debug:       key = "User-Name, Acct-Session-Id, NAS-IP-Address, Client-IP-Address, NAS-Port"
> Wed Nov  6 21:04:26 2013 : Debug:   }
> Wed Nov  6 21:04:26 2013 : Debug:     (Loaded rlm_files, checking if it's valid)
> Wed Nov  6 21:04:26 2013 : Debug:  Module: Linked to module rlm_files
> Wed Nov  6 21:04:26 2013 : Debug:  Module: Instantiating module "files" from file /etc/raddb/modules/files
> Wed Nov  6 21:04:26 2013 : Debug:   files {
> Wed Nov  6 21:04:26 2013 : Debug:       usersfile = "/etc/raddb/users"
> Wed Nov  6 21:04:26 2013 : Debug:       acctusersfile = "/etc/raddb/acct_users"
> Wed Nov  6 21:04:26 2013 : Debug:       preproxy_usersfile = "/etc/raddb/preproxy_users"
> Wed Nov  6 21:04:26 2013 : Debug:       compat = "no"
> Wed Nov  6 21:04:26 2013 : Debug:   }
> Wed Nov  6 21:04:26 2013 : Debug:  Module: Checking accounting {...} for more modules to load
> Wed Nov  6 21:04:26 2013 : Error: /etc/raddb/modules/billmax[7]: Failed to link to module 'rlm_billmax': file not found
> Wed Nov  6 21:04:26 2013 : Error: /etc/raddb/sites-enabled/default[384]: Failed to load module "billmax".
> Wed Nov  6 21:04:26 2013 : Error: /etc/raddb/sites-enabled/default[378]: Errors parsing accounting section.

The file:

> [root at ip-10-0-0-65 freeradius]# ls -l /usr/lib64/freeradius/rlm_billmax.so
> -rwxr-xr-x 1 root root 20193 Nov  6 20:55 /usr/lib64/freeradius/rlm_billmax.so

Bill


More information about the Freeradius-Users mailing list