Gents,
so long as you are using FR 2.1.x then you shouldnt
need to do that - just simply edit experimental.conf
to make sure the python stuff is active and then edit
radiusd.conf to make sure that experimental.conf is included
(you did compile FR with experimental modules enabled?)
then you should be able to call python in the postauth section
./configure --with-experimental-modules
$INCLUDE experimental.conf
including configuration file /usr/local/etc/raddb/experimental.conf
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
}
echo_NAS_Info
python
Module: Checking post-auth {...} for more modules to load
Module: Instantiating echo_NAS_Info
exec echo_NAS_Info {
wait = yes
program = "/bin/echo %{User-Name}, %{NAS-IP-Address}, %{NAS-Port} "
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
/usr/local/etc/raddb/sites-enabled/default[422]: Failed to find module "python".
/usr/local/etc/raddb/sites-enabled/default[380]: Errors parsing post-auth section.
}