"); } // 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) { require('conflogin.php'); exit; } // check if password is valid // if not: load login page include_once ('../../lib/config.inc'); $conf = new Config(); if (!(($conf->get_Passwd()) == $passwd)) { require('conflogin.php'); exit; } echo ("\n"); echo ("\n"); echo ("" . _("LDAP Account Manager Configuration") . "\n"); echo "\n"; echo ("\n"); echo ("\n"); echo ("

". "\"LDAP




\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() . "\">". "

". _("Server Address of LDAP server (e.g. ldap://localhost:389 or ldaps://localhost:636)"). "

 

". _("UserSuffix") . ":

get_UserSuffix() . "\">

". _("This is the suffix from where to search for users.
(e.g. ou=People,dc=yourcompany,dc=com)"). "

". _("GroupSuffix") . ":

get_GroupSuffix() . "\">

". _("This is the suffix from where to search for groups.
(e.g. ou=group,dc=yourcompany,dc=com)"). "

". _("HostSuffix") . ":

get_HostSuffix() . "\">

". _("This is the suffix from where to search for Samba hosts.
(e.g. ou=machines,dc=yourcompany,dc=com)"). "

"); echo ("
"); echo ("
"); echo ("
" . _("Ranges") . ""); echo (""); // minUID echo ("". "\n"); // UID text echo ("\n"); // minGID echo ("". "\n"); // GID text echo ("\n"); // minMach echo ("". "\n"); // Machine text echo ("\n"); echo ("
". _("Minimum UID number") . ": get_minUID() . "\">\n"); // maxUID echo ("  " . _("Maximum UID number") . ": ". "get_maxUID() . "\">

". _("These are the minimum and maximum numbers to use for user IDs"). "

". _("Minimum GID number") . ": get_minGID() . "\">\n"); // maxGID echo ("  " . _("Maximum GID number").": ". "get_maxGID() . "\">

". _("These are the minimum and maximum numbers to use for group IDs"). "

". _("Minimum Machine number") . ": get_minMachine() . "\">\n"); // maxMach echo ("  " . _("Maximum Machine number") . ": ". "get_maxMachine() . "\">

". _("These are the minimum and maximum numbers to use for Samba hosts.
Do not use the same range as for user IDs.") . "

"); echo ("
"); echo ("
"); echo ("
" . _("LDAP List settings") . ""); echo (""); // user list attributes echo ("". ""); // list attributes description echo (""); // user list attributes echo ("". ""); // user list attributes echo ("". ""); // two new lines echo (""); echo (""); // admin list echo ("". "\n"); // admin list description echo ("\n"); // maximum list entries echo ("". "\n"); // maximum list entries description echo ("\n"); echo ("

". _("Attributes in User List:") . "

get_userlistAttributes() . "\">

". _("This is the list of attributes to show in the lists. The entries can either be predefined values". " (e.g. '#cn' or '#gidNumber') or individual ones (e.g. 'cn:Group Name'). The entries are seperated by semicolons."). "

". _("Attributes in Group List:") . "

get_grouplistAttributes() . "\">

". _("Attributes in Host List:") . "

get_hostlistAttributes() . "\">
 
 

". _("List of valid users") . ":

get_Adminstring() . "\">

". _("Usernames must be seperated by semicolons")."
". _("(e.g. cn=admin,dc=yourcompany,dc=com;uid=root,ou=people,dc=yourcompany,dc=com)"). "

". _("Maximum displayed entries") . ":

". _("This is the maximum count of entries which are displayed on one page of the user/host/group lists."). "

\n"); echo ("
\n"); echo ("
\n"); echo ("
" . _("Language settings") . "\n"); echo ("\n"); // language echo (""); echo ("\n\n"); echo ("
" . _("Default Language") . ""); // 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 ("
\n"); echo ("
\n"); echo ("
\n"); echo ("
" . _("Script settings") . "\n"); echo ("\n"); // script settings echo ("". "\n"); echo ("". "\n"); echo ("

". _("Path to external script") . ":

get_scriptPath() . "\">

". _("Server of external script") . ":

get_scriptServer() . "\">
\n"); echo ("
\n"); echo ("
\n"); echo ("
" . _("Security settings") . "\n"); echo ("\n"); // new password echo ("". "\n"); // reenter password echo ("". "\n"); echo ("
". _("New Password") . ":
". _("Reenter Password") . ":
\n"); echo ("
"); echo ("
"); // buttons echo (""); echo ("\n"); echo ("
".
	"".
	"".
	"
\n"); // password for configuration echo ("
\n"); echo ("
\n"); echo ("\n"); echo ("\n"); ?>