get_Passwd()) { require('conflogin.php'); exit; } echo ("\n"); echo ("\n"); echo "listusers\n"; echo "\n"; echo "\n"; echo ("

". "\"LDAP




"); // check new preferences if (chop($serverurl) == "") { echo _("" . _("Server Address is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($admins) == "") { echo _("" . _("List of admin users is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($suffusers) == "") { echo _("" . _("UserSuffix is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($suffgroups) == "") { echo _("" . _("UserSuffix is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($suffhosts) == "") { echo _("" . _("HostSuffix is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($minUID) == "") { echo _("" . _("MinUID is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($maxUID) == "") { echo _("" . _("MaxUID is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($minGID) == "") { echo _("" . _("MinGID is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($maxGID) == "") { echo _("" . _("MaxGID is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($minMach) == "") { echo _("" . _("MinMachine is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($maxMach) == "") { echo _("" . _("MaxMachine is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($usrlstattr) == "") { echo _("" . _("No attributes in user list!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($grplstattr) == "") { echo _("" . _("No attributes in group list!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($hstlstattr) == "") { echo _("" . _("No attributes in host list!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($maxlistentries) == "") { echo _("" . _("Max list entries is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($language) == "") { echo _("" . _("Language is not defined!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (chop($samba3) == "") { echo _("" . _("Samba version is not defined!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } // set new preferences $conf->set_ServerURL($serverurl); $conf->set_Adminstring($admins); $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_userlistAttributes($usrlstattr); $conf->set_grouplistAttributes($grplstattr); $conf->set_hostlistAttributes($hstlstattr); $conf->set_MaxListEntries($maxlistentries); $conf->set_defaultLanguage($language); $conf->set_samba3($samba3); // optional if ($_SESSION['scriptpath']) $conf->set_scriptpath($scriptpath); else $conf->set_scriptpath(""); if ($_SESSION['scriptserver']) $conf->set_scriptserver($scriptserver); else $conf->set_scriptserver(""); // 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 ("" . _("The following settings were saved:") . "

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




" . _("Back to Login") . ""); echo(""); // remove settings from session unset($_SESSION['passwd']); unset($_SESSION['passwd1']); unset($_SESSION['passwd2']); unset($_SESSION['serverurl']); unset($_SESSION['admins']); unset($_SESSION['suffusers']); unset($_SESSION['suffgroups']); unset($_SESSION['suffhosts']); unset($_SESSION['minUID']); unset($_SESSION['maxUID']); unset($_SESSION['minGID']); unset($_SESSION['maxGID']); unset($_SESSION['minMach']); unset($_SESSION['maxMach']); unset($_SESSION['usrlstattr']); unset($_SESSION['grplstattr']); unset($_SESSION['hstlstattr']); unset($_SESSION['maxlistentries']); unset($_SESSION['language']); unset($_SESSION['scriptpath']); unset($_SESSION['scriptserver']); unset($_SESSION['samba3']); ?>