return RLM_MODULE_REJECT;
} else {
# Accept user and set some attribute
- if (&radiusd::xlat("%(client:group)") eq 'UltraAllInclusive') {
+ if (&radiusd::xlat("%client(group)") eq 'UltraAllInclusive') {
# User called from NAS with unlim plan set, set higher limits
$RAD_REPLY{'h323-credit-amount'} = "1000000";
} else {
}
accounting {
- reference = "%{tolower:type.%{Acct-Status-Type}.query}"
+ reference = "%tolower(type.%{Acct-Status-Type}.query)"
type {
start {
query = "\
}
accounting {
- reference = "%{tolower:type.%{Acct-Status-Type}.query}"
+ reference = "%tolower(type.%{Acct-Status-Type}.query)"
type {
start {
query = "\
}
accounting {
- reference = "%{tolower:type.%{Acct-Status-Type}.query}"
+ reference = "%tolower(type.%{Acct-Status-Type}.query)"
type {
start {
query = "\
# distrust the provided Event-Timestamp.
#event_timestamp_epoch = "%l"
-event_timestamp_epoch = "%{%(integer:%{Event-Timestamp}):-%l}"
+event_timestamp_epoch = "%{%integer(%{Event-Timestamp}):-%l}"
# event_timestamp is the SQL snippet for converting an epoch timestamp
# to an SQL date.
-event_timestamp = "%{expr:${event_timestamp_epoch} * 1000}"
+event_timestamp = "%expr(${event_timestamp_epoch} * 1000)"
#######################################################################
# Default profile
# as INSERTS are really UPSERTS so we can work around it.
#######################################################################
accounting {
- reference = "%{tolower:type.%{Acct-Status-Type}.query}"
+ reference = "%tolower(type.%{Acct-Status-Type}.query)"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
acctstarttime \
) VALUES ( \
'%{Acct-Unique-Session-Id}', \
- %{expr:(${....event_timestamp_epoch} - &Acct-Session-Time) * 1000} \
+ %expr((${....event_timestamp_epoch} - &Acct-Session-Time) * 1000) \
) IF NOT EXISTS; \
INSERT INTO ${....acct_table1} ( \
acctuniqueid, \
null, \
'%{Acct-Authentic}', \
'%{Connect-Info}', \
- %{expr:(&Acct-Input-Gigawords << 32) | &Acct-Input-Octets}, \
- %{expr:(&Acct-Output-Gigawords << 32) | &Acct-Output-Octets}, \
+ %expr((&Acct-Input-Gigawords << 32) | &Acct-Input-Octets), \
+ %expr((&Acct-Output-Gigawords << 32) | &Acct-Output-Octets), \
'%{Called-Station-Id}', \
'%{Calling-Station-Id}', \
'%{Service-Type}', \
acctstarttime \
) VALUES ( \
'%{Acct-Unique-Session-Id}', \
- %{expr:(${....event_timestamp_epoch} - &Acct-Session-Time) * 1000} \
+ %expr((${....event_timestamp_epoch} - &Acct-Session-Time) * 1000) \
) IF NOT EXISTS; \
INSERT INTO ${....acct_table1} ( \
acctuniqueid, \
${....event_timestamp}, \
'%{Acct-Authentic}', \
'%{Connect-Info}', \
- %{expr:(&Acct-Input-Gigawords << 32) | &Acct-Input-Octets}, \
- %{expr:(&Acct-Output-Gigawords << 32) | &Acct-Output-Octets}, \
+ %expr((&Acct-Input-Gigawords << 32) | &Acct-Input-Octets), \
+ %expr((&Acct-Output-Gigawords << 32) | &Acct-Output-Octets), \
'%{Called-Station-Id}', \
'%{Calling-Station-Id}', \
'%{Service-Type}', \
'%{SQL-User-Name}', \
'%{%{User-Password}:-%{Chap-Password}}', \
'%{reply.Packet-Type}', \
- '%{expr:%l * 1000 + %M / 1000}', \
+ '%expr(%l * 1000 + %M / 1000)', \
'%{reply.Class}')"
}
# distrust the provided Event-Timestamp.
#event_timestamp_epoch = "%l"
-event_timestamp_epoch = "%{%(integer:%{Event-Timestamp}):-%l}"
+event_timestamp_epoch = "%{%integer(%{Event-Timestamp}):-%l}"
# event_timestamp is the SQL snippet for converting an epoch timestamp
# to an SQL date.
# combination of attributes, or custom 'Acct-Status-Type' values.
#######################################################################
accounting {
- reference = "%{tolower:type.%{Acct-Status-Type}.query}"
+ reference = "%tolower(type.%{Acct-Status-Type}.query)"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
'%{User-Name}', \
'%{%{User-Password}:-CHAP-PASSWORD}', \
'%{reply.Packet-Type}', \
- '%S.%{expr:%M / 1000}', \
+ '%S.%expr(%M / 1000)', \
'%{reply.Class}')"
}
-# -*- text -*-
+]# -*- text -*-
#
# main/mysql/queries.conf-- MySQL configuration for default schema (schema.sql)
#
# distrust the provided Event-Timestamp.
#event_timestamp_epoch = "%l"
-event_timestamp_epoch = "%{%(integer:%{Event-Timestamp}):-%l}"
+event_timestamp_epoch = "%{%integer(%{Event-Timestamp}):-%l}"
# event_timestamp is the SQL snippet for converting an epoch timestamp
# to an SQL date.
# combination of attributes, or custom 'Acct-Status-Type' values.
#######################################################################
accounting {
- reference = "%{tolower:type.%{Acct-Status-Type}.query}"
+ reference = "%tolower(type.%{Acct-Status-Type}.query)"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
# distrust the provided Event-Timestamp.
#event_timestamp_epoch = "%l"
-event_timestamp_epoch = "%{%(integer:%{Event-Timestamp}):-%l}"
+event_timestamp_epoch = "%{%integer(%{Event-Timestamp}):-%l}"
# event_timestamp is the SQL snippet for converting an epoch timestamp
# to an SQL date.
# combination of attributes, or custom 'Acct-Status-Type' values.
#######################################################################
accounting {
- reference = "%{tolower:type.%{Acct-Status-Type}.query}"
+ reference = "%tolower(type.%{Acct-Status-Type}.query)"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
sql_user_name = "%{User-Name}"
accounting {
- reference = "%{tolower:type.%{Acct-Status-Type}.query}"
+ reference = "%tolower(type.%{Acct-Status-Type}.query)"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
# distrust the provided Event-Timestamp.
#event_timestamp_epoch = "%l"
-event_timestamp_epoch = "%{%(integer:%{Event-Timestamp}):-%l}"
+event_timestamp_epoch = "%{%integer(%{Event-Timestamp}):-%l}"
# event_timestamp is the SQL snippet for converting an epoch timestamp
# to an SQL date.
#######################################################################
accounting {
- reference = "%{tolower:type.%{%{Acct-Status-Type}:-none}.query}"
+ reference = "%tolower(type.%{%{Acct-Status-Type}:-none}.query)"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.
# distrust the provided Event-Timestamp.
#event_timestamp_epoch = "%l"
-event_timestamp_epoch = "%{%(integer:%{Event-Timestamp}):-%l}"
+event_timestamp_epoch = "%{%integer(%{Event-Timestamp}):-%l}"
# event_timestamp is the SQL snippet for converting an epoch timestamp
# to an SQL date.
# combination of attributes, or custom 'Acct-Status-Type' values.
#######################################################################
accounting {
- reference = "%{tolower:type.%{Acct-Status-Type}.query}"
+ reference = "%tolower(type.%{Acct-Status-Type}.query)"
# Write SQL queries to a logfile. This is potentially useful for bulk inserts
# when used with the rlm_sql_null driver.