get_Passwd()) { require('conflogin.php'); exit; } echo $_SESSION['header']; echo "" . _("LDAP Account Manager Configuration") . "\n"; echo "\n"; echo "\n"; echo ("

". "\"LDAP




"); // check new preferences if (!$conf->set_samba3($samba3)) { echo ("" . _("Samba version is not defined!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_ServerURL($serverurl)) { echo ("" . _("Server Address is empty!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_cacheTimeout($cachetimeout)) { echo ("" . _("Cache timeout is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_Adminstring($admins)) { echo ("" . _("List of admin users is empty or invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_UserSuffix($suffusers)) { echo ("" . _("UserSuffix is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_GroupSuffix($suffgroups)) { echo ("" . _("GroupSuffix is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_HostSuffix($suffhosts)) { echo ("" . _("HostSuffix is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_DomainSuffix($suffdomains)) { echo ("" . _("DomainSuffix is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_minUID($minUID)) { echo ("" . _("Minimum UID number is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_maxUID($maxUID)) { echo ("" . _("Maximum UID number is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_minGID($minGID)) { echo ("" . _("Minimum GID number is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_maxGID($maxGID)) { echo ("" . _("Maximum GID number is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_minMachine($minMach)) { echo ("" . _("Minimum Machine number is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_maxMachine($maxMach)) { echo ("" . _("Maximum Machine number is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_userlistAttributes($usrlstattr)) { echo ("" . _("User list attributes are invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_grouplistAttributes($grplstattr)) { echo ("" . _("Group list attributes are invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_hostlistAttributes($hstlstattr)) { echo ("" . _("Host list attributes are invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_MaxListEntries($maxlistentries)) { echo ("" . _("Max list entries is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_defaultLanguage($lang)) { echo ("" . _("Language is not defined!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_scriptpath($scriptpath)) { echo ("" . _("Logon script is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_scriptserver($scriptserver)) { echo ("" . _("Script server is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_pwdhash($pwdhash)) { echo ("" . _("Password hash is invalid!") . ""); echo ("\n


" . _("Back to preferences...") . ""); exit; } if (!$conf->set_pdftext($pdftext)) { echo ("" . _("Saving PDF text failed!") . ""); echo ("\n


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

"); } } // save settings and display new settings $conf->save(); echo ("" . _("The following settings were saved to profile:") . " " . $filename . "

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




" . _("Back to Login") . ""); echo(""); // remove settings from session unset($_SESSION['conf_passwd']); unset($_SESSION['conf_passwd1']); unset($_SESSION['conf_passwd2']); unset($_SESSION['conf_serverurl']); unset($_SESSION['conf_cachetimeout']); unset($_SESSION['conf_admins']); unset($_SESSION['conf_suffusers']); unset($_SESSION['conf_suffgroups']); unset($_SESSION['conf_suffhosts']); unset($_SESSION['conf_suffdomains']); unset($_SESSION['conf_minUID']); unset($_SESSION['conf_maxUID']); unset($_SESSION['conf_minGID']); unset($_SESSION['conf_maxGID']); unset($_SESSION['conf_minMach']); unset($_SESSION['conf_maxMach']); unset($_SESSION['conf_usrlstattr']); unset($_SESSION['conf_grplstattr']); unset($_SESSION['conf_hstlstattr']); unset($_SESSION['conf_maxlistentries']); unset($_SESSION['conf_lang']); unset($_SESSION['conf_scriptpath']); unset($_SESSION['conf_scriptserver']); unset($_SESSION['conf_samba3']); unset($_SESSION['conf_pwdhash']); unset($_SESSION['conf_pdf_usertext']); unset($_SESSION['conf_filename']); ?>