From 899a245524b1041ffd945a60d12e0041e7104e92 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Sun, 15 Jan 2017 17:50:35 +0100 Subject: [PATCH] Add modules python --- freeradius_utils/modules/rlm_python_re2o.conf | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) mode change 120000 => 100644 freeradius_utils/modules/rlm_python_re2o.conf diff --git a/freeradius_utils/modules/rlm_python_re2o.conf b/freeradius_utils/modules/rlm_python_re2o.conf deleted file mode 120000 index 5bd5d2ad..00000000 --- a/freeradius_utils/modules/rlm_python_re2o.conf +++ /dev/null @@ -1 +0,0 @@ -../rlm_python_re2o.conf \ No newline at end of file diff --git a/freeradius_utils/modules/rlm_python_re2o.conf b/freeradius_utils/modules/rlm_python_re2o.conf new file mode 100644 index 00000000..77ea11d3 --- /dev/null +++ b/freeradius_utils/modules/rlm_python_re2o.conf @@ -0,0 +1,33 @@ +python re2o { + mod_instantiate = auth + func_instantiate = instantiate + + # Pour le authorize, c'est auth.py qui fait le tri maintenant + mod_authorize = auth + func_authorize = authorize + + # Renseigne le vlan si necessaire + # remplacer par dummy_fun pour ignorer le tagging de vlan + mod_post_auth = auth + func_post_auth = post_auth + + # Que faire avant de quitter + mod_detach = auth + func_detach = detach + + # Le reste sert à rien + mod_accounting = auth + func_accounting = dummy_fun + + mod_pre_proxy = auth + func_pre_proxy = dummy_fun + + mod_post_proxy = auth + func_post_proxy = dummy_fun + + mod_recv_coa = auth + func_recv_coa = dummy_fun + + mod_send_coa = auth + func_send_coa = dummy_fun +}