siproxdusers
0.5.9
siproxd: Users
Settings
/pkg_edit.php?xml=siproxd.xml&id=0
Users
/pkg.php?xml=siproxdusers.xml
installedpackages->package->$packagename->configuration->settings
Username
username
Description
description
Username
username
Enter the username here
input
Password
password
Enter the password here
password
Username Description
description
Enter the description of the user here
input
sync_package_sipproxd_users();
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");
}
sync_package_sipproxd_users();