Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2437 → Rev 2438

/conf/radius/queries.conf
1,12 → 1,12
# -*- text -*-
##
## dialup.conf -- MySQL configuration for default schema (schema.sql)
## query.conf -- MySQL configuration for default schema (schema.sql)
##
## $Id: dialup.conf 983 2012-08-16 13:34:14Z franck $
 
# Safe characters list for sql queries. Everything else is replaced
# with their mime-encoded equivalents.
# The default list should be ok
# The default list should be ok (define in 'expr' module
#safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
 
#######################################################################
262,7 → 262,31
'%{Acct-Terminate-Cause}', \
'%{Service-Type}', '%{Framed-Protocol}', '%{Framed-IP-Address}', \
'0', '%{%{Acct-Delay-Time}:-0}')"
 
# We add the following patch (freeradius V2 to V3) in order ALCASAR works
# be carefull : 'tolower' need now the 'expr' module
accounting {
reference = "%{tolower:type.%{Acct-Status-Type}.query}"
type {
accounting-on {
query = "${....accounting_onoff_query}"
}
accounting-off {
query = "${....accounting_onoff_query}"
}
start {
query = "${....accounting_start_query}"
query = "${....accounting_start_query_alt}"
}
interim-update {
query = "${....accounting_update_query}"
query = "${....accounting_update_query_alt}"
}
stop {
query = "${....accounting_stop_query}"
query = "${....accounting_stop_query_alt}"
}
}
}
#######################################################################
# Simultaneous Use Checking Queries
#######################################################################
300,4 → 324,7
VALUES ( \
'%{User-Name}', \
'%{reply:Packet-Type}', '%S')"
 
# We add the following patch (freeradius V2 to V3) in order ALCASAR works
post-auth {
query = "${..postauth_query}"
}