Problem with python module

Denis Shipilov shipilovds at gmail.com
Mon Jul 15 15:47:36 CEST 2019


Hello! Is there someone who can help me? Radiusd starting failed, google
can not help me.
FreeRADIUS Version 3.0.13
Centos 7.6.1810

radiusd -X output:

...
Debugger not attached
radiusd: #### Instantiating modules ####
 modules {
  # Loaded module rlm_python
  # Loading module "python" from file /etc/raddb/radiusd.conf
  python {
<internal>[73]: Reference "${.module}" not found
/etc/raddb/radiusd.conf[73]: Failed expanding variable mod_instantiate
/etc/raddb/radiusd.conf[73]: Invalid configuration for module "python"


radiusd.conf:

...
modules {
    python {
        python_path = /usr/lib64/python2.7
        mod_authorize = radius
        func_authorize = authorize
        mod_accounting = radius
        func_accounting = accounting
        mod_preacct = radius
        func_preacct = preacct
        mod_postauth = radius
        func_postauth = postauth
    }
...

python file: /usr/lib64/python2.7/radius.py

I can not understand what happened.
Same conf works on other servers. I can not find difference.
Any suggestions?
Sorry if something wrong - I am not native speaker and first time with
mailing lists.


More information about the Freeradius-Users mailing list