From 709478073129fa71e213784a59718169ade4cde0 Mon Sep 17 00:00:00 2001 From: Gabriel Detraz Date: Mon, 16 Jan 2017 04:18:24 +0100 Subject: [PATCH] Update freeradius3 config --- .../modules/rlm_python_re2o.conf | 0 .../sites-enabled/radius-filaire | 0 .../freeradius3/mods-enabled/python | 46 +++++++++++++++++++ 3 files changed, 46 insertions(+) rename freeradius_utils/{ => freeradius2}/modules/rlm_python_re2o.conf (100%) rename freeradius_utils/{ => freeradius2}/sites-enabled/radius-filaire (100%) create mode 100644 freeradius_utils/freeradius3/mods-enabled/python diff --git a/freeradius_utils/modules/rlm_python_re2o.conf b/freeradius_utils/freeradius2/modules/rlm_python_re2o.conf similarity index 100% rename from freeradius_utils/modules/rlm_python_re2o.conf rename to freeradius_utils/freeradius2/modules/rlm_python_re2o.conf diff --git a/freeradius_utils/sites-enabled/radius-filaire b/freeradius_utils/freeradius2/sites-enabled/radius-filaire similarity index 100% rename from freeradius_utils/sites-enabled/radius-filaire rename to freeradius_utils/freeradius2/sites-enabled/radius-filaire diff --git a/freeradius_utils/freeradius3/mods-enabled/python b/freeradius_utils/freeradius3/mods-enabled/python new file mode 100644 index 00000000..f533b57f --- /dev/null +++ b/freeradius_utils/freeradius3/mods-enabled/python @@ -0,0 +1,46 @@ +# +# Make sure the PYTHONPATH environmental variable contains the +# directory(s) for the modules listed below. +# +# Uncomment any func_* which are included in your module. If +# rlm_python is called for a section which does not have +# a function defined, it will return NOOP. +# +python re2o { + module = auth + + python_path = /etc/freeradius/3.0:/usr/lib/python2.7/:/usr/lib/python2.7/dist-packages/ + + mod_instantiate = ${.module} + func_instantiate = instantiate + + mod_detach = ${.module} + func_detach = detach + + mod_authorize = ${.module} + func_authorize = authorize + + mod_preacct = ${.module} + func_preacct = dummy_fun + + mod_accounting = ${.module} + func_accounting = dummy_fun + + mod_checksimul = ${.module} + func_checksimul = dummy_fun + + mod_pre_proxy = ${.module} + func_pre_proxy = dummy_fun + + mod_post_proxy = ${.module} + func_post_proxy = dummy_fun + + mod_post_auth = ${.module} + func_post_auth = post_auth + + mod_recv_coa = ${.module} + func_recv_coa = dummy_fun + + mod_send_coa = ${.module} + func_send_coa = dummy_fun +}