Problem with python module
Jorge Pereira
jpereira at freeradius.org
Mon Jul 15 20:09:04 CEST 2019
Hi Denis,
On Mon, Jul 15, 2019 at 10:52 AM Denis Shipilov <shipilovds at gmail.com>
wrote:
> Hello! Is there someone who can help me? Radiusd starting failed, google
> can not help me.
> FreeRADIUS Version 3.0.13
>
It's an old-version! Feel free to upgrade it to the latest 3.0.19 using the
official packages from http://packages.networkradius.com
> 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:
>
>
So, you're missing the "module" config field as can be seen here
https://github.com/FreeRADIUS/freeradius-server/blob/master/raddb/mods-available/python#L34
in
this case, it should be filled with your myscript.py name. eg: module =
"myscript"
> ...
> 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.
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list