sql {
	driver = "rlm_sql_postgresql"
	dialect = "postgresql"

	server = "postgres"
	port = 5432
	login = "radius"
	password = "radpass"
	radius_db = "radius"

	# Standard FreeRADIUS SQL Table Mappings
	authcheck_table = "radcheck"
	authreply_table = "radreply"
	groupcheck_table = "radgroupcheck"
	groupreply_table = "radgroupreply"
	usergroup_table = "radusergroup"

	# Accounting Table Mappings
	acct_table1 = "radacct"
	acct_table2 = "radacct"

	# Post-auth Table Mapping
	postauth_table = "radpostauth"

	# NAS Client Table Mapping
	client_table = "nas"
	read_clients = yes

	group_attribute = "SQL-Group"

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

	read_groups = yes

	$INCLUDE ${modconfdir}/${.:name}/main/${dialect}/queries.conf
}
