2 # This file contains the configuration for experimental modules.
4 # By default, it is NOT included in the build.
9 # Configuration for the Python module.
11 # Where radiusd is a Python module, radiusd.py, and the
12 # function 'authorize' is called. Here is a dummy piece
15 # def authorize(params):
17 # return (5, ('Reply-Message', 'banned'))
19 # The RADIUS value-pairs are passed as a tuple of tuple
20 # pairs as the first argument, e.g. (('attribute1',
21 # 'value1'), ('attribute2', 'value2'))
23 # The function return is a tuple with the first element
24 # being the return value of the function.
25 # The 5 corresponds to RLM_MODULE_USERLOCK. I plan to
26 # write the return values as Python symbols to avoid
29 # The remaining tuple members are the string form of
30 # value-pairs which are passed on to pairmake().
33 mod_instantiate = radiusd_test
34 func_instantiate = instantiate
36 mod_authorize = radiusd_test
37 func_authorize = authorize
39 mod_accounting = radiusd_test
40 func_accounting = accounting
42 mod_pre_proxy = radiusd_test
43 func_pre_proxy = pre_proxy
45 mod_post_proxy = radiusd_test
46 func_post_proxy = post_proxy
48 mod_post_auth = radiusd_test
49 func_post_auth = post_auth
51 mod_recv_coa = radiusd_test
52 func_recv_coa = recv_coa
54 mod_send_coa = radiusd_test
55 func_send_coa = send_coa
57 mod_detach = radiusd_test
62 # Configuration for the example module. Uncommenting it will cause it
63 # to get loaded and initialised, but should have no real effect as long
64 # it is not referenced in one of the autz/auth/preacct/acct sections
67 # allowed values: {no, yes}
70 # An integer, of any value.
74 string = "This is an example configuration string"
76 # An IP address, either in dotted quad (1.2.3.4) or hostname
85 string = "This is a different string"
91 # To create a dbm users file, do:
93 # cat test.users | rlm_dbm_parser -f /etc/raddb/users_db
95 # Then add 'dbm' in 'authorize' section.
97 # Note that even if the file has a ".db" or ".dbm" extension,
98 # you may have to specify it here without that extension. This
99 # is because the DBM libraries "helpfully" add a ".db" to the
100 # filename, but don't check if it's already there.
103 usersfile = ${confdir}/users_db
106 # Instantiate a couple instances of the idn module
110 # ...more commonly known as...
115 UseSTD3ASCIIRules = no