/etc/freeradius/3.0/mods-available/python is in freeradius-config 3.0.16+dfsg-1ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #
# 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 {
# Path to the python modules
#
# Note that due to limitations on Python, this configuration
# item is GLOBAL TO THE SERVER. That is, you cannot have two
# instances of the python module, each with a different path.
#
# python_path="/path/to/python/files:/another_path/to/python_files/"
module = example
mod_instantiate = ${.module}
# func_instantiate = instantiate
mod_detach = ${.module}
# func_detach = instantiate
mod_authorize = ${.module}
# func_authorize = authorize
mod_authenticate = ${.module}
# func_authenticate = authenticate
mod_preacct = ${.module}
# func_preacct = preacct
mod_accounting = ${.module}
# func_accounting = accounting
mod_checksimul = ${.module}
# func_checksimul = checksimul
mod_pre_proxy = ${.module}
# func_pre_proxy = pre_proxy
mod_post_proxy = ${.module}
# func_post_proxy = post_proxy
mod_post_auth = ${.module}
# func_post_auth = post_auth
mod_recv_coa = ${.module}
# func_recv_coa = recv_coa
mod_send_coa = ${.module}
# func_send_coa = send_coa
}
|