summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.filter_synchronize5
-rwxr-xr-xusr/local/www/system_hasync.php9
2 files changed, 14 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'] != "") {
diff --git a/usr/local/www/system_hasync.php b/usr/local/www/system_hasync.php
index 05a8133..a686581 100755
--- a/usr/local/www/system_hasync.php
+++ b/usr/local/www/system_hasync.php
@@ -48,6 +48,7 @@ $a_hasync = &$config['hasync'];
$checkbox_names = array('pfsyncenabled',
'synchronizeusers',
+ 'synchronizeauthservers',
'synchronizecerts',
'synchronizerules',
'synchronizeschedules',
@@ -190,6 +191,14 @@ include("head.inc");
</td>
</tr>
<tr valign="top">
+ <td width="22%" class="vncell">Synchronize Auth Servers</td>
+ <td class="vtable">
+ <input id='synchronizeauthservers' type='checkbox' name='synchronizeauthservers' value='on' <?php if ($pconfig['synchronizeauthservers'] === "on") echo "checked='checked'"; ?> />
+ <br />
+ When this option is enabled, this system will automatically sync the authentication servers (e.g. LDAP, RADIUS) over to the other HA host when changes are made.
+ </td>
+ </tr>
+ <tr valign="top">
<td width="22%" class="vncell">Synchronize Certificates</td>
<td class="vtable">
<input id='synchronizecerts' type='checkbox' name='synchronizecerts' value='on' <?php if ($pconfig['synchronizecerts'] === "on") echo "checked='checked'"; ?> />
OpenPOWER on IntegriCloud