]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Update sample rlm_python config
authorNick Porter <nick@portercomputing.co.uk>
Mon, 21 Apr 2025 16:32:20 +0000 (17:32 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Mon, 21 Apr 2025 16:32:20 +0000 (17:32 +0100)
raddb/mods-available/python

index 4a59233483cd3186670fb65ffa47fbc6e84b8682..df363df9844aa7a146b9d779baf20c5b2ecc38bd 100644 (file)
 #  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 { ... }::
        #