From: Nick Porter Date: Mon, 21 Apr 2025 16:32:20 +0000 (+0100) Subject: Update sample rlm_python config X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fecc8a4ad896ac27fcd45e49fa47a4284e2f3a6;p=thirdparty%2Ffreeradius-server.git Update sample rlm_python config --- diff --git a/raddb/mods-available/python b/raddb/mods-available/python index 4a59233483c..df363df9844 100644 --- a/raddb/mods-available/python +++ b/raddb/mods-available/python @@ -16,6 +16,22 @@ # NOTE: Uncomment any `func_*` configuration items below which are # included in your module. If the module is called for a section which # does not have a function defined, it will return `noop`. +# +# NOTE: As of FreeRADIUS v4, the Python function names called when the `python` +# module is called are automatically derived from the section in which +# they are called. +# +# e.g. if `python` is called in `recv Access-Request`, firstly a function +# `recv_access_request` will be looked for. If that does not exist, then +# a function `recv` will be looked for. +# +# This can be overridden by setting `func_recv_access_request` or `func_recv` +# to point to a different function name. +# +# Similarly, `mod_recv_access_request` or `mod_recv` can be used to +# load the function from a module other than the one specified in the +# `module` option. + # # Please see the file global.d/python for server-global configuration # items which control the Python path. @@ -64,12 +80,6 @@ python { # # func_detach = detach -# func_authorize = authorize -# func_authenticate = authenticate -# func_preacct = preacct -# func_accounting = accounting -# func_post_auth = post_auth - # # config { ... }:: #