diff options
author | jim-p <jimp@pfsense.org> | 2010-08-02 17:17:46 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-08-02 17:17:46 -0400 |
commit | 0ce726624dc1fbc4998ca85d79b27d810d88d5fb (patch) | |
tree | 7ac84e364d7e564bdd08093a2e609e6abcc9e0e3 /etc/rc.filter_synchronize | |
parent | 62c4d0fb3ecaa43d51345c46240edf2f0a95552e (diff) | |
download | pfsense-0ce726624dc1fbc4998ca85d79b27d810d88d5fb.zip pfsense-0ce726624dc1fbc4998ca85d79b27d810d88d5fb.tar.gz |
Optionally sync users and groups via xmlrpc. Fixes #650
Diffstat (limited to 'etc/rc.filter_synchronize')
-rwxr-xr-x | etc/rc.filter_synchronize | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/rc.filter_synchronize b/etc/rc.filter_synchronize index 0a6cdb8..ded772c 100755 --- a/etc/rc.filter_synchronize +++ b/etc/rc.filter_synchronize @@ -168,6 +168,7 @@ function carp_sync_xml($url, $password, $sections, $port = 80, $method = 'pfsens case 'cert': case 'ca': case 'user': + case 'group': $xml['system'][$section] = $config_copy['system'][$section]; break; default: @@ -270,6 +271,10 @@ if (is_array($config['installedpackages']['carpsettings']['config'])) { $mergesections[] = 'cert'; $mergesections[] = 'ca'; } + if ($carp['synchronizeusers'] != "") { + $mergesections[] = 'user'; + $mergesections[] = 'group'; + } if ($carp['synchronizednsforwarder'] != "" and is_array($config['dnsmasq'])) $sections[] = 'dnsmasq'; if ($carp['synchronizeschedules'] != "" and is_array($config['schedules'])) |