1+ #
2+ # Make sure the PYTHONPATH environmental variable contains the
3+ # directory(s) for the modules listed below.
4+ #
5+ # Uncomment any func_* which are included in your module. If
6+ # rlm_python is called for a section which does not have
7+ # a function defined, it will return NOOP.
8+ #
9+ python3 {
10+ # Path to the python modules
11+ #
12+ # Note that due to limitations on Python, this configuration
13+ # item is GLOBAL TO THE SERVER. That is, you cannot have two
14+ # instances of the python module, each with a different path.
15+ #
16+ python_path="${modconfdir}/${.:name}:/cgn_ec_freeradius:/usr/local/lib/python3.10/dist-packages"
17+
18+ # How to use "python_path"
19+ #
20+ # - "append" - append to system path
21+ # - "prepend" - prepend to the system path
22+ # - "overwrite" - overwrite the system path
23+ #
24+ # Note: Take care when using "prepend" - the paths searched
25+ # should not be writeable by any un-trusted users or services
26+ # to avoid overriding standard functionality with malicious code.
27+ # python_path_mode = append
28+
29+ module = kafka_producer
30+
31+ # Pass all VPS lists as a 6-tuple to the callbacks
32+ # (request, reply, config, state, proxy_req, proxy_reply)
33+ # pass_all_vps = no
34+
35+ # Pass all VPS lists as a dictionary to the callbacks
36+ # Keys: "request", "reply", "config", "session-state", "proxy-request",
37+ # "proxy-reply"
38+ # This option prevales over "pass_all_vps"
39+ pass_all_vps_dict = yes
40+
41+ mod_instantiate = ${.module}
42+ func_instantiate = instantiate
43+
44+ # mod_detach = ${.module}
45+ # func_detach = detach
46+
47+ # mod_authorize = ${.module}
48+ # func_authorize = authorize
49+
50+ # mod_authenticate = ${.module}
51+ # func_authenticate = authenticate
52+
53+ # mod_preacct = ${.module}
54+ # func_preacct = preacct
55+
56+ mod_accounting = ${.module}
57+ func_accounting = accounting
58+
59+ # mod_checksimul = ${.module}
60+ # func_checksimul = checksimul
61+
62+ # mod_pre_proxy = ${.module}
63+ # func_pre_proxy = pre_proxy
64+
65+ # mod_post_proxy = ${.module}
66+ # func_post_proxy = post_proxy
67+
68+ # mod_post_auth = ${.module}
69+ # func_post_auth = post_auth
70+
71+ # mod_recv_coa = ${.module}
72+ # func_recv_coa = recv_coa
73+
74+ # mod_send_coa = ${.module}
75+ # func_send_coa = send_coa
76+ }
0 commit comments