#
# $Id$
#
+
sql {
# Database type
groupcheck_table = "radgroupcheck"
groupreply_table = "radgroupreply"
+ # Table to keep group info
usergroup_table = "usergroup"
+ # If set to 'yes' (default) we read the group tables
+ # If set to 'no' the user MUST have Fall-Through = Yes in the radreply table
+ #read_groups = yes
+
# Remove stale session if checkrad does not see a double login
deletestalesessions = yes
# group_membership_query - Check user group membership
#######################################################################
- #
- # If set to 'yes' (default) we read the group tables
- # If set to 'no' the user MUST have Fall-Through = Yes in the radreply table
- #read_groups = yes
-
group_membership_query = "SELECT GroupName FROM ${usergroup_table} WHERE UserName='%{SQL-User-Name}'"
+
}
groupcheck_table = "radgroupcheck"
groupreply_table = "radgroupreply"
+ # Table to keep group info
usergroup_table = "usergroup"
- #table to keep radius client info
+ # If set to 'yes' (default) we read the group tables
+ # If set to 'no' the user MUST have Fall-Through = Yes in the radreply table
+ #read_groups = yes
+
+ # Table to keep radius client info
nas_table = "nas"
+ # Set to 'yes' to read radius clients from the database ('nas' table)
+ #readclients = yes
+
# Remove stale session if checkrad does not see a double login
deletestalesessions = yes
group_membership_query = "SELECT GroupName FROM ${usergroup_table} WHERE UserName='%{SQL-User-Name}' ORDER BY priority"
- # If set to 'yes' (default) we read the group tables
- # If set to 'no' the user MUST have Fall-Through = Yes in the radreply table
- #read_groups = yes
-
#######################################################################
# Authentication Logging Queries
#######################################################################
postauth_query = "INSERT INTO ${postauth_table} (username, pass, reply, authdate) \
values ('%{User-Name}', '%{User-Password:-Chap-Password}', '%{reply:Packet-Type}', NOW())"
- #
- #Set to 'yes' to read radius clients from the database ('nas' table)
- #readclients = yes
-
}
#
# $Id$
#
+
sql {
+
# Database type
# Current supported are: rlm_sql_mysql, rlm_sql_postgresql,
# rlm_sql_iodbc, rlm_sql_oracle, rlm_sql_unixodbc, rlm_sql_freetds
groupcheck_table = "radgroupcheck"
groupreply_table = "radgroupreply"
+ # Table to keep group info
usergroup_table = "usergroup"
+ # If set to 'yes' (default) we read the group tables
+ # If set to 'no' the user MUST have Fall-Through = Yes in the radreply table
+ #read_groups = yes
+
# Table to keep radius client info
nas_table = "nas"
+ # Set to 'yes' to read radius clients from the database ('nas' table)
+ #readclients = yes
+
# Remove stale session if checkrad does not see a double login
deletestalesessions = yes
group_membership_query = "SELECT GroupName FROM ${usergroup_table} WHERE UserName='%{SQL-User-Name}' ORDER BY priority"
- #
- # If set to 'yes' (default) we read the group tables
- # If set to 'no' the user MUST have Fall-Through = Yes in the radreply table
- #read_groups = yes
-
#######################################################################
# Authentication Logging Queries
#######################################################################
postauth_query = "INSERT into ${postauth_table} (id, user, pass, reply, date) values ('', '%{User-Name}', '%{User-Password:-Chap-Password}', '%{reply:Packet-Type}', '%S')"
- #
- # Set to 'yes' to read radius clients from the database ('nas' table)
- #readclients = yes
}