# combination of attributes, or custom 'Acct-Status-Type' values.
#######################################################################
accounting {
- reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Request-Processing-Stage}}.query}"
+ reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Acct-Session-Query}}.query}"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
-# -*- text -*-
+ -*- text -*-
#
# main/mysql/queries.conf-- MySQL configuration for default schema (schema.sql)
#
# combination of attributes, or custom 'Acct-Status-Type' values.
#######################################################################
accounting {
- reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Request-Processing-Stage}}.query}"
+ reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Acct-Session-Query}}.query}"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
# combination of attributes, or custom 'Acct-Status-Type' values.
#######################################################################
accounting {
- reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Request-Processing-Stage}}.query}"
+ reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Acct-Session-Query}}.query}"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
#######################################################################
accounting {
- reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Request-Processing-Stage}}.query}"
+ reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Acct-Session-Query}}.query}"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
# combination of attributes, or custom 'Acct-Status-Type' values.
#######################################################################
accounting {
- reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Request-Processing-Stage}}.query}"
+ reference = "%{tolower:type.%{%{Acct-Status-Type}:-%{Acct-Session-Query}}.query}"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
# the session information.
#
sql_session_start.post-auth {
- acct_unique
-
#
# The SQL accounting queries need an Acct-Status-Type attribute
#
update request {
- Acct-Status-Type := Start
+ &Acct-Session-Query := "post-auth"
+ &Acct-Status-Type := Start
}
sql.accounting
}
ATTRIBUTE FreeRADIUS-Client-Src-IPv6-Address 1154 ipv6addr
ATTRIBUTE FreeRADIUS-Response-Delay-USec 1155 integer
+#
+# For sql_session_start policy
+#
+ATTRIBUTE Acct-Session-Query 1156 string
+
ATTRIBUTE REST-HTTP-Header 1160 string
ATTRIBUTE REST-HTTP-Body 1161 string
ATTRIBUTE REST-HTTP-Status-Code 1162 integer