diff options
author | jim-p <jimp@pfsense.org> | 2013-06-24 15:32:48 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-06-24 15:33:16 -0400 |
commit | 4efdada8f32335b350a747063acacb96a93e4f08 (patch) | |
tree | fffe49fd816b7c84d934f94dea40e37c361f69fd | |
parent | fc1f4960ca00eb11e320a97b2c5270d5ac8951a0 (diff) | |
download | pfsense-4efdada8f32335b350a747063acacb96a93e4f08.zip pfsense-4efdada8f32335b350a747063acacb96a93e4f08.tar.gz |
Add option and code to sync Auth servers with XMLRPC.
-rwxr-xr-x | etc/rc.filter_synchronize | 5 | ||||
-rwxr-xr-x | usr/local/www/system_hasync.php | 9 |
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'"; ?> /> |