rlm_python & freeradiusd 2.0.2

Alexander Demidoff demidoff at vpcit.ru
Sat Feb 16 10:04:25 CET 2008


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 !?



More information about the Freeradius-Users mailing list