question about using rlm_python
Darshak Thakore
darshakthakore at gmail.com
Tue May 9 03:52:33 CEST 2017
Hi all,
I'm trying to use the rlm_python module in FreeRadius 3.0.X and i've
followed the documentation provided in the Wiki to enable and configure the
module. The basic module seems to be working, i.e after activating the
module in mods-enabled and setting the python_path in mods-enabled/python
and enabling instantiate and authorize, i can see the calls being made to
the instantiate and authorize functions in example.py.
However, then i was trying to enable/import a new module (for example was
trying to use redis to just store some values during authorize). I added
the path of the new module in python_path (
${modconfdir/${.:name}:/usr/local/lib/python2.7/dist-packages} ) I am
unable to even launch freeradius. No matter which module I import, i always
get an error that says
python_function_load - Module 'example' not found
<type 'exceptions.ImportError'> (No module named __future__)
python_function_load - Failed to import python function 'eample.instantiate'
/etc/freeradius/mods-enabled/python[9]: Instantiation failed for module
"python"
How can I setup the rlm_python so that i can import other modules in my
example.py ?
Thanks in advance
More information about the Freeradius-Users
mailing list