"); } // back to login else if ($_POST['back']){ echo(""); } exit; } // get password if register_globals is off if ($_POST['passwd']) $passwd = $_POST['passwd']; // check if password was entered // if not: load login page if (! $passwd) { $message = _("No password was entered!"); require('conflogin.php'); exit; } // check if password is valid // if not: load login page include_once ('../../lib/config.inc'); $conf = new Config($_POST['filename']); if (!(($conf->get_Passwd()) == $passwd)) { $message = _("The password is invalid! Please try again."); require('conflogin.php'); exit; } echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("" . _("LDAP Account Manager Configuration") . "\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("

". "\"LDAP

\n
\n

\n"); // display formular echo ("
\n"); echo ("
" . _("Server settings") . ""); echo (""); // serverURL echo ("". "\n"); echo ("\n"); // new line echo (""); // user suffix echo ("". "\n"); echo ("\n"); // group suffix echo ("". "\n"); echo ("\n"); // host suffix echo ("". "\n"); echo ("\n"); echo ("
" . _("Server Address") . ": ". "get_ServerURL() . "\">". "" . _("Help") . "
 
". _("UserSuffix") . ": get_UserSuffix() . "\">" . _("Help") . "
". _("GroupSuffix") . ": get_GroupSuffix() . "\">" . _("Help") . "
". _("HostSuffix") . ": get_HostSuffix() . "\">" . _("Help") . "
"); echo ("
"); echo ("

"); echo ("
" . _("Samba settings") . ""); echo (""); // Samba version echo (""); else echo (""); echo ("\n"); // new line echo (""); // Samba domain SID echo ("". "\n"); echo ("\n"); echo ("
". _("Samba 3.x schema") . ": " . _("Help") . "
 
". _("Domain SID (Samba 3 only)") . ": get_domainSID() . "\">" . _("Help") . "
"); echo ("
"); echo ("

"); echo ("
" . _("Ranges") . ""); echo (""); // minUID echo ("\n"); // maxUID echo ("\n"); // UID text echo ("\n"); // minGID echo ("\n"); // maxGID echo ("\n"); // GID text echo ("\n"); // minMach echo ("\n"); // maxMach echo ("\n"); // Machine text echo ("\n"); echo ("
". _("Minimum UID number") . ": ". "get_minUID() . "\">" . _("Maximum UID number") . ": ". "get_maxUID() . "\">" . _("Help") . "
". _("Minimum GID number") . ": ". "get_minGID() . "\">" . _("Maximum GID number").": ". "get_maxGID() . "\">" . _("Help") . "
". _("Minimum Machine number") . ": ". "get_minMachine() . "\">" . _("Maximum Machine number") . ": ". "get_maxMachine() . "\">" . _("Help") . "
\n"); echo ("
\n"); echo ("

\n"); echo ("
" . _("LDAP List settings") . "\n"); echo ("\n"); // user list attributes echo ("". ""); echo ("\n"); // user list attributes echo ("". ""); echo ("\n"); // user list attributes echo ("". ""); echo ("\n"); echo ("\n"); // maximum list entries echo ("". "\n"); echo ("\n"); echo ("
". _("Attributes in User List:") . "get_userlistAttributes() . "\">" . _("Help") . "
". _("Attributes in Group List:") . "get_grouplistAttributes() . "\">" . _("Help") . "
". _("Attributes in Host List:") . "get_hostlistAttributes() . "\">" . _("Help") . "
 
". _("Maximum list entries") . ": " . _("Help") . "
\n"); echo ("
\n"); echo ("

\n"); echo ("
" . _("Language settings") . "\n"); echo ("\n"); // language echo (""); echo ("\n"); echo ("\n"); echo ("
" . _("Default Language") . "\n"); // read available languages $languagefile = "../../config/language.conf"; if(is_file($languagefile)) { $file = fopen($languagefile, "r"); $i = 0; while(!feof($file)) { $line = fgets($file, 1024); if($line == "\n" || $line[0] == "#" || $line == "") continue; // ignore comment and empty lines $languages[$i] = chop($line); $i++; } fclose($file); // generate language list echo ("\n"); } else { echo _("Unable to load available languages. For further instructions please contact the Admin of this site.\n"); } echo ("" . _("Help") . "
\n"); echo ("
\n"); echo ("

\n"); echo ("
" . _("Script settings") . "\n"); echo ("\n"); // script settings echo ("". "\n"); echo ("\n"); echo ("". "\n"); echo ("\n"); echo ("
". _("Path to external script") . ": get_scriptPath() . "\">" . _("Help") . "
". _("Server of external script") . ": get_scriptServer() . "\">" . _("Help") . "
\n"); echo ("
\n"); echo ("

\n"); // security setings echo ("
" . _("Security settings") . "\n"); echo ("\n"); // admin list echo ("". "\n"); echo ("\n"); echo ("
". _("List of valid users") . ": get_Adminstring() . "\">" . _("Help") . "
\n"); echo ("

\n"); echo ("\n"); // new password echo ("". "\n"); echo ("\n"); // reenter password echo ("". "\n"); echo ("
". _("New Password") . ": " . _("Help") . "
". _("Reenter Password") . ":
\n"); echo ("
\n"); echo ("

\n"); // buttons echo ("\n"); echo ("\n"); echo ("
".
	"".
	"".
	"
\n"); echo ("

"); // password for configuration echo ("

\n"); // config file echo ("

\n"); echo ("
\n"); echo ("\n"); echo ("\n"); ?>