diff options
author | Alexander Wilke <nachtfalkeaw@web.de> | 2012-04-17 18:10:35 +0300 |
---|---|---|
committer | Alexander Wilke <nachtfalkeaw@web.de> | 2012-04-17 18:10:35 +0300 |
commit | e59a25a44672f45e7638e767e10605ba856deade (patch) | |
tree | d096ecb40cf89e256737bbce6c2505bc336b42b6 /config/freeradius2 | |
parent | 55943f5f937e906d87ae1827025e3abce9b08ce0 (diff) | |
download | pfsense-packages-e59a25a44672f45e7638e767e10605ba856deade.tar.gz pfsense-packages-e59a25a44672f45e7638e767e10605ba856deade.tar.bz2 pfsense-packages-e59a25a44672f45e7638e767e10605ba856deade.zip |
freeradius2 accounting script fixes
Diffstat (limited to 'config/freeradius2')
-rw-r--r-- | config/freeradius2/freeradius.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc index 3dd6da00..3c8cebaa 100644 --- a/config/freeradius2/freeradius.inc +++ b/config/freeradius2/freeradius.inc @@ -4019,7 +4019,7 @@ function freeradius_datacounter_auth_resync() { #!/bin/sh ### USAGE: datacounter_auth.sh USERNAME TIMERANGE ### We need this parameters from freeradius users file and ../raddb/modules/datacounter_acct -USERNAME=`echo -n "\\$1" | sed 's/[^0-9a-zA-Z._-]/X/g' ` +USERNAME=`echo -n "\\$1" | sed 's/[^0-9a-zA-Z._:-]/X/g' ` TIMERANGE=`echo -n "\\$2" | sed 's/[^a-z]//g' ` ### We check if MAX-OCTETS-USERNAME is greater than USED-OCTETS-USERNAME and accept or reject the user @@ -4048,7 +4048,7 @@ function freeradius_datacounter_acct_resync() { #!/bin/sh ### USAGE: datacounter_acct.sh USERNAME TIMERANGE ACCTINPUTOCTETS ACCTOUTPUTOCTETS ### We need this from an Accounting-Request packet to count the octets -USERNAME=`echo -n "\\$1" | sed 's/[^0-9a-zA-Z._-]/X/g' ` +USERNAME=`echo -n "\\$1" | sed 's/[^0-9a-zA-Z.:_-]/X/g' ` TIMERANGE=`echo -n "\\$2" | sed 's/[^a-z]//g' ` ACCTINPUTOCTETS=`echo -n "\\$3" | sed 's/[^0-9]/0/g' ` ACCTOUTPUTOCTETS=`echo -n "\\$4" | sed 's/[^0-9]/0/g' ` |