get_Passwd()) { require('conflogin.php'); exit; } // check new preferences if (chop($host) == "") { echo _("" . _("Hostname is empty!") . ""); exit; } if (chop($port) == "") { echo _("" . _("Portnumber is empty!") . ""); exit; } if (chop($admins) == "") { echo _("" . _("List of admin users is empty!") . ""); exit; } if (chop($suffusers) == "") { echo _("" . _("UserSuffix is empty!") . ""); exit; } if (chop($suffgroups) == "") { echo _("" . _("UserSuffix is empty!") . ""); exit; } if (chop($minUID) == "") { echo _("" . _("minUID is empty!") . ""); exit; } if (chop($maxUID) == "") { echo _("" . _("maxUID is empty!") . ""); exit; } if (chop($minGID) == "") { echo _("" . _("minGID is empty!") . ""); exit; } if (chop($maxGID) == "") { echo _("" . _("maxGID is empty!") . ""); exit; } if (chop($minMach) == "") { echo _("" . _("minMachine is empty!") . ""); exit; } if (chop($maxMach) == "") { echo _("" . _("maxMachine is empty!") . ""); exit; } if (chop($defShell) == "") { echo _("" . _("default shell is empty!") . ""); exit; } if (chop($shellList) == "") { echo _("" . _("shell list is empty!") . ""); exit; } // set new preferences $conf->set_Host($host); $conf->set_Port($port); $conf->set_Adminstring($admins); if ($ssl == "on") $conf->set_SSL("True"); else $conf->set_SSL("False"); $conf->set_UserSuffix($suffusers); $conf->set_GroupSuffix($suffgroups); $conf->set_HostSuffix($suffhosts); $conf->set_minUID($minUID); $conf->set_maxUID($maxUID); $conf->set_minGID($minGID); $conf->set_maxGID($maxGID); $conf->set_minMachine($minMach); $conf->set_maxMachine($maxMach); $conf->set_defaultShell($defShell); $conf->set_shellList($shellList); echo ("




"); // check if password was changed if ($pass1 != $pass2) { echo _("" . _("Passwords are different!") . ""); exit; } // set new password if ($pass1 != "") { $conf->set_Passwd($pass1); echo ("" . _("Password changed!") . "

"); } // save settings and display new settings $conf->save(); echo ("" . _("Saving the following settings:") . "

"); $conf->printconf(); ?>