Re: How to specify python modules used by rlm_python?
Hi, I'm trying to use rlm_python to intergrate with my own authentication backend, but there's so little document about rlm_python. I even cannot find how to specify the path to the python module. radiusd.py living in PYTHONPATH - EXPORT PYTHONPATH=$location alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
How to specify python modules used by rlm_python?
Hi everyone, I'm trying to use rlm_python to intergrate with my own authentication backend, but there's so little document about rlm_python. I even cannot find how to specify the path to the python module. Can anybody give me a hint? Module: Instantiating module python from file /etc/freeradius/modules/python python_init done python { mod_instantiate = radiusd_test func_instantiate = instantiate mod_authorize = radiusd_test func_authorize = authorize mod_accounting = radiusd_test func_accounting = accounting mod_pre_proxy = radiusd_test func_pre_proxy = pre_proxy mod_post_proxy = radiusd_test func_post_proxy = post_proxy mod_post_auth = radiusd_test func_post_auth = post_auth mod_recv_coa = radiusd_test func_recv_coa = recv_coa mod_send_coa = radiusd_test func_send_coa = send_coa mod_detach = radiusd_test func_detach = detach } rlm_python:python_load_function: module 'radiusd_test' is not found rlm_python:EXCEPT:type 'exceptions.ImportError': No module named radiusd_test rlm_python:python_load_function: failed to import python function 'radiusd_test.instantiate' /etc/freeradius/modules/python[1]: Instantiation failed for module python - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html