aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Wilke <nachtfalkeaw@web.de>2012-01-19 23:59:43 +0100
committerAlexander Wilke <nachtfalkeaw@web.de>2012-01-19 23:59:43 +0100
commit8e4bb2f4f4a84d2079dc36701e4c7454fa773769 (patch)
treef3468d464ede6d9c0efc121d6e8512346c847d2f
parent84c8e01187690d8339ebff986999db1e9ed8656c (diff)
downloadpfsense-packages-8e4bb2f4f4a84d2079dc36701e4c7454fa773769.tar.gz
pfsense-packages-8e4bb2f4f4a84d2079dc36701e4c7454fa773769.tar.bz2
pfsense-packages-8e4bb2f4f4a84d2079dc36701e4c7454fa773769.zip
Update config/freeradius2/freeradius.inc
-rw-r--r--config/freeradius2/freeradius.inc12
1 files changed, 11 insertions, 1 deletions
diff --git a/config/freeradius2/freeradius.inc b/config/freeradius2/freeradius.inc
index ebe655c0..7ef5f749 100644
--- a/config/freeradius2/freeradius.inc
+++ b/config/freeradius2/freeradius.inc
@@ -1262,6 +1262,16 @@ function freeradius_serverdefault_resync() {
$varplainmacpreacctenable .= "\n\trewrite_calling_station_id";
}
+ // Disable acct_unique in preacct section
+ $varsettings = $config['installedpackages']['freeradiussettings']['config'][0];
+
+ if ($varsettings['varsettingsenableacctunique'] == 'on') {
+ $varsettingsacctuniqueenabled = '##### DISABLE acct_unique DISABLE #####';
+ }
+ else {
+ $varsettingsacctuniqueenabled = 'acct_unique';
+ }
+
$conf .= <<<EOD
######################################################################
@@ -1637,7 +1647,7 @@ preacct {
#
# Ensure that we have a semi-unique identifier for every
# request, and many NAS boxes are broken.
- acct_unique
+ $varsettingsacctuniqueenabled
#
# Look for IPASS-style 'realm/', and if not found, look for