How to specify python modules used by rlm_python?
yegle
cnyegle at gmail.com
Tue Oct 4 05:57:13 CEST 2011
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"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20111004/5c7b714a/attachment.html>
More information about the Freeradius-Users
mailing list