# This entry should be used for additional instances (sql foo {})
# of the SQL module.
-# group_attr = "${.:instance}-SQL-Group"
+# group_attribute = "${.:instance}-SQL-Group"
# This entry should be used for the default instance (sql {})
# of the SQL module.
- group_attr = "SQL-Group"
+ group_attribute = "SQL-Group"
# Read database-specific queries
$INCLUDE ${modconfdir}/${.:name}/main/${dialect}/queries.conf
SELECT id, groupname, attribute, \
Value, op \
FROM ${groupcheck_table} \
- WHERE groupname = '%{${group_attr}}' \
+ WHERE groupname = '%{${group_attribute}}' \
ORDER BY id"
authorize_group_reply_query = "\
SELECT id, groupname, attribute, \
value, op \
FROM ${groupreply_table} \
- WHERE groupname = '%{${group_attr}}' \
+ WHERE groupname = '%{${group_attribute}}' \
ORDER BY id"
#######################################################################
authorize_group_check_query = "\
SELECT id, GroupName, Attribute, Value, op \
FROM ${groupcheck_table} \
- WHERE GroupName = '%{${group_attr}}' \
+ WHERE GroupName = '%{${group_attribute}}' \
ORDER BY id"
authorize_group_reply_query = "\
SELECT id, GroupName, Attribute, Value, op \
FROM ${groupreply_table} \
- WHERE GroupName = '%{${group_attr}}' \
+ WHERE GroupName = '%{${group_attribute}}' \
ORDER BY id"
#######################################################################
SELECT id, groupname, attribute, \
Value, op \
FROM ${groupcheck_table} \
- WHERE groupname = '%{${group_attr}}' \
+ WHERE groupname = '%{${group_attribute}}' \
ORDER BY id"
authorize_group_reply_query = "\
SELECT id, groupname, attribute, \
value, op \
FROM ${groupreply_table} \
- WHERE groupname = '%{${group_attr}}' \
+ WHERE groupname = '%{${group_attribute}}' \
ORDER BY id"
#######################################################################
SELECT radacctid, acctsessionid, username, nasipaddress, nasportid, framedipaddress, \
callingstationid, framedprotocol \
FROM ${acct_table1} \
- WHERE username = '%{${group_attr}}' \
+ WHERE username = '%{${group_attribute}}' \
AND acctstoptime IS NULL"
#######################################################################
client_table = "nas"
# The group attribute specific to this instance of rlm_sql
- group_attr = "SQL-Group"
+ group_attribute = "SQL-Group"
# Read database-specific queries
$INCLUDE ${modconfdir}/${.:name}/main/${dialect}/queries.conf
client_table = "nas"
# The group attribute specific to this instance of rlm_sql
- group_attr = "SQL-Group"
+ group_attribute = "SQL-Group"
# Read database-specific queries
$INCLUDE ${modconfdir}/${.:name}/main/${dialect}/queries.conf
client_table = "nas"
# The group attribute specific to this instance of rlm_sql
- group_attr = "SQL-Group"
+ group_attribute = "SQL-Group"
# Read database-specific queries
$INCLUDE ${modconfdir}/${.:name}/main/${dialect}/queries.conf