> I am sure i'm not the only person experiencing this problem. It seems > when using the python module to handle auth/acct. > If you include the MySQLdb module in the python script freeradius then > dies and is unable to load the pythong module. > > I am using the latest stable freeradius version 2.1.6, built for ubuntu > as per http://wiki.freeradius.org/Build using fakeroot. > The python script being used is the "prepaid.py" script renamed to > "radiusd_test.py" in the example below. > ... > Wed Jul 8 12:10:51 2009 : Debug: Module: Instantiating python > Wed Jul 8 12:10:51 2009 : Debug: python_init done > Wed Jul 8 12:10:51 2009 : Debug: python { > Wed Jul 8 12:10:51 2009 : Debug: mod_instantiate = "radiusd_test" > Wed Jul 8 12:10:51 2009 : Debug: func_instantiate = "instantiate" > Wed Jul 8 12:10:51 2009 : Debug: mod_authorize = "radiusd_test" > Wed Jul 8 12:10:51 2009 : Debug: func_authorize = "authorize" > Wed Jul 8 12:10:51 2009 : Debug: mod_authenticate = "radiusd_test" > Wed Jul 8 12:10:51 2009 : Debug: func_authenticate = "authenticate" > Wed Jul 8 12:10:51 2009 : Debug: mod_preacct = "radiusd_test" > Wed Jul 8 12:10:51 2009 : Debug: func_preacct = "accounting" > Wed Jul 8 12:10:51 2009 : Debug: mod_detach = "radiusd_test" > Wed Jul 8 12:10:51 2009 : Debug: func_detach = "detach" > Wed Jul 8 12:10:51 2009 : Debug: } > Wed Jul 8 12:10:51 2009 : Error: rlm_python:python_load_function: > module 'radiusd_test' is not found
Are you sure radius user has permissions on radiusd_test.py? Ivan Kalik Kalik Informatika ISP - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html