Project

General

Profile

« Previous | Next » 

Revision 69937c05

Added by Jim Pingle almost 12 years ago

Add option and code to sync Auth servers with XMLRPC.

View differences:

etc/rc.filter_synchronize
224 224
				$xml['system'][$section] = $config_copy['system'][$section];
225 225
				$xml['system']['nextgid'] = $config_copy['system']['nextgid'];
226 226
				break;
227
			case 'authserver':
228
				$xml['system'][$section] = $config_copy['system'][$section];
227 229
			default:
228 230
				$xml[$section] = $config_copy[$section];
229 231
		}
......
378 380
		$sections[] = 'user';
379 381
		$sections[] = 'group';
380 382
	} 
383
	if ($hasync['synchronizeauthservers'] != "") {
384
		$sections[] = 'authserver';
385
	}
381 386
	if ($hasync['synchronizednsforwarder'] != "" and is_array($config['dnsmasq']))
382 387
		$sections[] = 'dnsmasq';
383 388
	if ($hasync['synchronizeschedules'] != "" || $hasync['synchronizerules'] != "") {
usr/local/www/system_hasync.php
48 48

  
49 49
$checkbox_names = array('pfsyncenabled',
50 50
			'synchronizeusers',
51
			'synchronizeauthservers',
51 52
			'synchronizecerts',
52 53
			'synchronizerules',
53 54
			'synchronizeschedules',
......
189 190
			When this option is enabled, this system will automatically sync the users and groups over to the other HA host when changes are made.
190 191
		</td>
191 192
	</tr>
193
	<tr valign="top">
194
		<td width="22%" class="vncell">Synchronize Auth Servers</td>
195
		<td class="vtable">
196
			<input id='synchronizeauthservers' type='checkbox' name='synchronizeauthservers' value='on' <?php if ($pconfig['synchronizeauthservers'] === "on") echo "checked='checked'"; ?> />
197
			<br />
198
			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.
199
		</td>
200
	</tr>
192 201
	<tr valign="top">
193 202
		<td width="22%" class="vncell">Synchronize Certificates</td>
194 203
		<td class="vtable">

Also available in: Unified diff