*sigh* These are the changes to the way radiusd.conf is created. I'm not
[freeradius.git] / src / modules / rlm_sql / selfconfig.m4
1 dnl  There's no runtime magic here.  This is included at compile time to make
2 dnl  a default etc/raddb/radiusd.conf for installation.
3 dnl
4 INSERT_GLOBAL_CONFIG(5)dnl
5 dnl nothing
6 INSERT_MODULE_INSTANTIATION(5)dnl
7         #
8         #  Configuration for the SQL module.
9         #
10         sql {
11                 # Connect info
12                 server          = "localhost"
13                 login           = "root"
14                 password        = "rootpass"
15
16                 # Database table configuration
17                 radius_db       = "radius"
18                 acct_table      = "radacct"
19
20                 authcheck_table = "radcheck"
21                 authreply_table = "radreply"
22
23                 groupcheck_table = "radgroupcheck"
24                 groupreply_table = "radgroupreply"
25
26                 usergroup_table = "usergroup"
27
28                 realms_table    = "realms"
29                 realmgroup_table = "realmgroup"
30
31                 # Check case on usernames
32                 sensitiveusername = no
33
34                 # Remove stale session if checkrad does not see a double login
35                 deletestalesessions = yes
36
37                 # Print all SQL statements when in debug mode (-x)
38                 sqltrace        = no
39                 sqltracefile = ${logdir}/sqltrace.sql
40
41                 # number of sql connections to make to server
42                 num_sql_socks = 5
43         }
44
45         #
46         #  A second instance of the same module, with the name "sql2" to identify it
47         #
48         sql sql2 {
49         
50                 # Connect info
51                 server = "myothersever"
52                 login = "root"
53                 password = "rootpass"
54                 
55                 # Database table configuration
56                 radius_db = "radius"
57                 acct_table = "radacct"
58                 
59                 authcheck_table = "radcheck"
60                 authreply_table = "radreply"
61                 
62                 groupcheck_table = "radgroupcheck"
63                 groupreply_table = "radgroupreply"
64                 
65                 usergroup_table = "usergroup"
66                 
67                 realms_table = "realms"
68                 realmgroup_table = "realmgroup"
69                 
70                 # Check case on usernames
71                 sensitiveusername = no
72         
73                 # Remove stale session if checkrad does not see a double login
74                 deletestalesessions = yes
75         
76                 # Print all SQL statements when in debug mode (-x)
77                 sqltrace = no
78         }
79 INSERT_DEF_AUTHENTICATION(5)dnl
80         #
81         # By grouping modules together in an authtype block, that authtype will be
82         # tried on each module in sequence until one returns REJECT or OK. This
83         # allows authentication failover if the first SQL server has crashed, for
84         # example.
85         #authtype SQL {
86         #       sql
87         #       sql2
88         #}
89 INSERT_DEF_AUTHORIZATION(5)dnl
90 dnl nothing
91 INSERT_DEF_PREACCOUNTING(5)dnl
92 dnl nothing
93 INSERT_DEF_ACCOUNTING(5)dnl
94 dnl nothing
95 INSERT_DEF_SESSION(5)dnl
96 dnl nothing