aboutsummaryrefslogtreecommitdiffstats
path: root/config/siproxd.inc
diff options
context:
space:
mode:
authorrob <rob@ubuntu.local>2009-04-11 02:53:58 -0700
committerrob <rob@ubuntu.local>2009-04-11 02:53:58 -0700
commit00ca1313d055ddf8c2823b7f76c553ed75d765dd (patch)
tree23a611405fa7c99dc957b87aed83537707885565 /config/siproxd.inc
parent83d4c55637161dc97fd611fa4faf3f1872dcc8da (diff)
parent81372f3fb6e45543837b7e0746b9c5f4f2b50c93 (diff)
downloadpfsense-packages-00ca1313d055ddf8c2823b7f76c553ed75d765dd.tar.gz
pfsense-packages-00ca1313d055ddf8c2823b7f76c553ed75d765dd.tar.bz2
pfsense-packages-00ca1313d055ddf8c2823b7f76c553ed75d765dd.zip
Merge commit 'mainline/master'
Diffstat (limited to 'config/siproxd.inc')
-rw-r--r--config/siproxd.inc17
1 files changed, 17 insertions, 0 deletions
diff --git a/config/siproxd.inc b/config/siproxd.inc
index fee47a90..be1ac196 100644
--- a/config/siproxd.inc
+++ b/config/siproxd.inc
@@ -27,6 +27,23 @@
POSSIBILITY OF SUCH DAMAGE.
*/
+function sync_package_sipproxd_users() {
+ conf_mount_rw();
+ config_lock();
+ global $config;
+ $fout = fopen("/usr/local/etc/siproxd_passwd.cfg","w");
+ fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n");
+ if($config['installedpackages']['siproxdusers']['config'] != "") {
+ foreach($config['installedpackages']['siproxdusers']['config'] as $rowhelper) {
+ fwrite($fout, $rowhelper['username'] . " " . $rowhelper['password'] . "\n");
+ }
+ }
+ fclose($fout);
+ conf_mount_ro();
+ config_unlock();
+ system("/usr/bin/killall -HUP siproxd");
+}
+
function siproxd_generate_rules($type) {
global $config;