Properly track absolute / relative paths
[freeradius.git] / raddb / mods-available / cui
1 # -*- text -*-
2 #
3 #  $Id$
4
5 #
6 #  Write Chargeable-User-Identity to the database.
7 #
8 #  Schema       raddb/sql/cui/<DB>/schema.sql
9 #  Queries      raddb/sql/cui/<DB>/queries.conf
10 #
11 sql cuisql {
12         # The submodule to use to execute queries. This should match
13         # the database you're attempting to connect to.
14         #
15         # There are CUI queries available for:
16         #    * rlm_sql_mysql
17         #    * rlm_sql_postgresql
18         #    * rlm_sql_null (log queries to disk)
19         #
20         driver = "rlm_sql_null"
21
22         # The dialect of SQL you want to use, this should usually match
23         # the driver you selected above.
24         #
25         # If you're using rlm_sql_null, then it should be the type of
26         # database the logged queries are going to be exected against.
27         dialect = "mysql"
28         
29         server = "localhost"
30         login = "db_login_name"
31         password = "db_password"
32         radius_db = "db_name"
33 #       sqltrace = yes
34 #       sqltracefile = ${logdir}/cuitrace.sql
35
36         pool {
37                 start = 5
38                 min = 4
39                 max = 10
40                 spare = 3
41                 uses = 0
42                 lifetime = 0
43                 idle_timeout = 60
44         }
45         
46         cui_table = "cui"
47         sql_user_name = "%{User-Name}"
48         
49         $INCLUDE ../sql/cui/${dialect}/queries.conf
50 }