Good day Freeradius users,
I am trying to use the rlm_python module to do additional actions after an user has been authenticated. To learn, I'm using the radiusd_test.py which is in the python path. I haven't found an indication that says it is impossible to do, correct me if I'm wrong off-course.
I did the following ( by the way, i made sure rlm_python was compiled with the server ) :
Created a python module under "modules" :
python {
mod_instantiate = radiusd_test
func_instantiate = instantiate
mod_authorize = radiusd_test
func_authorize = authorize
mod_accounting = radiusd_test
func_accounting = accounting
mod_preproxy = radiusd_test
func_preproxy = preproxy
mod_postproxy = radiusd_test
func_postproxy = postproxy
mod_postauth = radiusd_test
func_postauth = postauth
mod_detach = radiusd_test
func_detach = detach
}
Module: Instantiating 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_detach = "radiusd_test"
func_detach = "detach"
}
*** instantiate ***
/usr/local/etc/raddb/sites-enabled/default[422]: "python" modules aren't allowed in 'post-auth' sections -- they have no such method.
/usr/local/etc/raddb/sites-enabled/default[380]: Errors parsing post-auth section.