Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2437 → Rev 2438

/alcasar.sh
1084,9 → 1084,11
# Set "client.conf" to describe radius clients (coova on 127.0.0.1)
[ -e /etc/raddb/clients.conf.default ] || cp -f /etc/raddb/clients.conf /etc/raddb/clients.conf.default
cat << EOF > /etc/raddb/clients.conf
client 127.0.0.1 {
client localhost {
ipaddr = 127.0.0.1
secret = $secretradius
shortname = coova
shortname = chilli
nas_type = other
}
EOF
# Set Virtual server (remvove all except "alcasar virtual site")
1100,7 → 1102,7
# Set modules
# Set only usefull modules for ALCASAR (ldap is enabled only via ACC)
rm -rf /etc/raddb/mods-enabled/*
for mods in sql sqlcounter attr_filter expiration logintime pap
for mods in sql sqlcounter attr_filter expiration logintime pap expr
do
ln -s /etc/raddb/mods-available/$mods /etc/raddb/mods-enabled/$mods
done
/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}"
}