doormanusers
Doorman: Users
Settings
/pkg_edit.php?xml=doorman.xml&id=0
Users
/pkg.php?xml=doormanusers.xml
installedpackages->package->$packagename->configuration->settings
Username
username
Ports
ports
Addresses
addresses
Description
description
Username
username
Enter the username here. This may be up to 32 characters in length.
input
Password
password
Enter the password here. This may be up to 64 characters in length.
password
Allowed ports
ports
Enter a whitespace-delimited list of the ports or service names *to* which this user may connect.
input
Allowed addresses
addresses
Enter a whitespace-delimited list of the IP addresses or hostnames *from* which this user may connect. Addresses may be unique or expressed as ranges using CIDR notation.
input
Description
description
Enter a description for this user here.
input
function sync_package_doorman_users() {
if ($_POST == "") $_POST = $config['installedpackages']['doormanusers']['config'];
conf_mount_rw();
config_lock();
global $config;
$fout = fopen("/usr/local/etc/doormand/guestlist","w");
fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n");
if($config['installedpackages']['doormanusers'] != "") {
foreach($config['installedpackages']['doormanusers']['config'] as $rowhelper) {
fwrite($fout, $rowhelper['username'] . "\t" . $rowhelper['password'] . "\n\t" . $rowhelper['ports'] . "\n\t" . $rowhelper['addresses'] . "\n\n");
}
}
fclose($fout);
restart_service("doorman");
conf_mount_ro();
config_unlock();
}
sync_package_doorman_users();