Problem with python module
Denis Shipilov
shipilovds at gmail.com
Tue Jul 16 11:48:16 CEST 2019
Thank you, Jorge! Your help is much appreciated! It works.
Important thing: "python_path" option is useless. Everything works without
it, but "module" option resolve my issue.
пн, 15 июл. 2019 г. в 21:09, Jorge Pereira <jpereira at freeradius.org>:
> 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
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list