summaryrefslogtreecommitdiffstats
path: root/etc/rc.filter_synchronize
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-06-24 15:32:48 -0400
committerjim-p <jimp@pfsense.org>2013-06-24 15:32:48 -0400
commit69937c05272635af431e01c2dca9c6e059da36b0 (patch)
tree062e0b9fdbbff3ab03f375168b041717bca3c5c4 /etc/rc.filter_synchronize
parent2aacbacf83223db4678be3f2fa266624d65cd4ae (diff)
downloadpfsense-69937c05272635af431e01c2dca9c6e059da36b0.zip
pfsense-69937c05272635af431e01c2dca9c6e059da36b0.tar.gz
Add option and code to sync Auth servers with XMLRPC.
Diffstat (limited to 'etc/rc.filter_synchronize')
-rwxr-xr-xetc/rc.filter_synchronize5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize
index 4553b22..c5362c3 100755
--- a/etc/rc.filter_synchronize
+++ b/etc/rc.filter_synchronize
@@ -224,6 +224,8 @@ function carp_sync_xml($url, $username, $password, $sections, $port = 80, $metho
$xml['system'][$section] = $config_copy['system'][$section];
$xml['system']['nextgid'] = $config_copy['system']['nextgid'];
break;
+ case 'authserver':
+ $xml['system'][$section] = $config_copy['system'][$section];
default:
$xml[$section] = $config_copy[$section];
}
@@ -378,6 +380,9 @@ if (is_array($config['hasync'])) {
$sections[] = 'user';
$sections[] = 'group';
}
+ if ($hasync['synchronizeauthservers'] != "") {
+ $sections[] = 'authserver';
+ }
if ($hasync['synchronizednsforwarder'] != "" and is_array($config['dnsmasq']))
$sections[] = 'dnsmasq';
if ($hasync['synchronizeschedules'] != "" || $hasync['synchronizerules'] != "") {
OpenPOWER on IntegriCloud