From 8e4bb2f4f4a84d2079dc36701e4c7454fa773769 Mon Sep 17 00:00:00 2001 From: Alexander Wilke Date: Thu, 19 Jan 2012 23:59:43 +0100 Subject: Update config/freeradius2/freeradius.inc --- config/freeradius2/freeradius.inc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'config') 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 .= <<