Changed
[freeradius.git] / raddb / sql.conf
1 #  $Id$
2 #
3 #  Configuration for the SQL module
4 #
5 #  The database schemas and queries are located in subdirectories:
6 #
7 #       sql/DB/schema.sql       Schema
8 #       sql/DB/dialup.conf      Basic dialup (including policy) queries
9 #       sql/DB/counter.conf     counter
10 #       sql/DB/ippool.conf      IP Pools in SQL
11 #       sql/DB/ippool.sql       schema for IP pools.
12 #
13 #  Where "DB" is mysql, mssql, oracle, or postgresql.
14 #
15
16 sql {
17         #
18         #  Set the database to one of:
19         #
20         #       mysql, mssql, oracle, postgresql
21         #
22         database = "mysql"
23
24         #
25         #  Which FreeRADIUS driver to use.
26         #
27         driver = "rlm_sql_${database}"
28
29         ## Connection info:
30         server = "localhost"
31         login = "radius"
32         password = "radpass"
33
34         ## Database table configuration for everything except Oracle
35         radius_db = "radius"
36         ## If you are using Oracle then use this instead
37         # radius_db = "(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SID=your_sid)))"
38
39         ## If you want both stop and start records logged to the
40         ## same SQL table, leave this as is.  If you want them in
41         ## different tables, put the start table in acct_table1
42         ## and stop table in acct_table2
43         acct_table1 = "radacct"
44         acct_table2 = "radacct"
45
46         ## Allow for storing data after authentication
47         postauth_table = "radpostauth"
48
49         authcheck_table = "radcheck"
50         authreply_table = "radreply"
51
52         groupcheck_table = "radgroupcheck"
53         groupreply_table = "radgroupreply"
54
55         ## Table to keep group info
56         usergroup_table = "radusergroup"
57
58         ## If set to 'yes' (default) we read the group tables
59         ## If set to 'no' the user MUST have Fall-Through = Yes in the radreply table
60         # read_groups = yes
61
62         ## Remove stale session if checkrad does not see a double login
63         deletestalesessions = yes
64
65         ## Print all SQL statements when in debug mode (-x)
66         sqltrace = no
67         sqltracefile = ${logdir}/sqltrace.sql
68
69         ## number of sql connections to make to server
70         num_sql_socks = 5
71
72         ## number of seconds to dely retrying on a failed database
73         ## connection (per_socket)
74         connect_failure_retry_delay = 60
75
76         ## Table to keep radius client info
77         nas_table = "nas"
78
79         ## Set to 'yes' to read radius clients from the database ('nas' table)
80         # readclients = yes
81
82 #
83 #       Pull in the driver-specific configurations.
84 #
85 $INCLUDE sql/${database}/dialup.conf
86 }