summaryrefslogtreecommitdiffstats
path: root/src/tests/modules/sql_postgresql/module.conf
blob: ee9a8a9367b92b9ac2c6468d8caeee321c285bcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
sql {
	driver = "rlm_sql_postgresql"
	dialect = "postgresql"

        # Connection info:
        #
        server = $ENV{SQL_POSTGRESQL_TEST_SERVER}
        port = 5432
        login = "radius"
        password = "radpass"

        # Database table configuration for everything except Oracle
	radius_db = "radius"

	acct_table1 = "radacct"
	acct_table2 = "radacct"
	postauth_table = "radpostauth"
	authcheck_table = "radcheck"
	groupcheck_table = "radgroupcheck"
	authreply_table = "radreply"
	groupreply_table = "radgroupreply"
	usergroup_table = "radusergroup"
	read_groups = yes
	read_profiles = yes

	# Remove stale session if checkrad does not see a double login
	delete_stale_sessions = yes

	pool {
		start = 1
		min = 0
		max = 1
		spare = 3
		uses = 2
		lifetime = 1
		idle_timeout = 60
		retry_delay = 1
	}

	# Set to 'yes' to read radius clients from the database ('nas' table)
	# Clients will ONLY be read on server startup.
#	read_clients = yes

	# Table to keep radius client info
	client_table = "nas"

	# The group attribute specific to this instance of rlm_sql
	group_attribute = "SQL-Group"

	# Read database-specific queries
	$INCLUDE ${modconfdir}/${.:name}/main/${dialect}/queries.conf
}