Hi, Python interpreter has found my script (module)! But my radiusd_isp.pyc (.PYC) file is found with freeradius, not radiusd_isp.py! On Sunday 17 February 2008, Flamur Rogova wrote:
Hi, Python interpreter can not find your script. You can set your PYTHONPATH environmet variable to be the path where you have radiusd_isp.py, set it in your radius startup script.
Cheers, Flamur Rogova
export PYTHONPATH=/home/scripts
Alexander Demidoff wrote:
Hello all! I want to use python possibilities to authorize users with freeradius.
So, I compiled freeradius with options: --with-experimental-modules \ --with-rlm_python
created config files and my pythom module "radiusd_isp", put it python path
freeradius -X out me:
python { mod_instantiate = "radiusd_isp" func_instantiate = "instantiate" mod_authorize = "radiusd_isp" func_authorize = "authorize" mod_authenticate = "radiusd_isp" func_authenticate = "authenticate" mod_preacct = "radiusd_isp" func_preacct = "preacct" mod_accounting = "radiusd_isp" func_accounting = "accounting" mod_detach = "radiusd_isp" func_detach = "detach" } exceptions.ImportError: No module named radiusd_isp Failed to import python module "radiusd_isp" /etc/freeradius/python.conf[32]: Instantiation failed for module "python" /etc/freeradius/radiusd.conf[1824]: Failed to find module "python". /etc/freeradius/radiusd.conf[1793]: Errors parsing authorize section.
help me anybody, please !? - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html