Hi Alexander
I think your problem is that python does not know where to find your module.
The best way of over coming this issue is to place a file in the
site-packages directory which indicates where your python code is installed.
[EMAIL PROTECTED] site-packages]# cat radiusd_test.pth
/opt/freeradius-python/
[EMAIL PROTECTED] site-packages]#
Cheers
Mike
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