From 69937c05272635af431e01c2dca9c6e059da36b0 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 24 Jun 2013 15:32:48 -0400 Subject: Add option and code to sync Auth servers with XMLRPC. --- etc/rc.filter_synchronize | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'etc/rc.filter_synchronize') 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'] != "") { -- cgit v1.1