password != $_SESSION['confwiz_masterpwd']) { require("../config/conflogin.php"); exit; } // check if user clicked on buttons if ($_POST['submit'] || $_POST['cancel'] || $_POST['back']) { unset($error); unset($ret); if ($_POST['cancel']) { @unlink("../../config/" . $_SESSION['confwiz_config']->file . ".conf"); metarefresh('../config/conflogin.php'); } elseif ($_POST['back']) { metarefresh('server.php?back=true'); } else { // set input values $errors = array(); if (!$_SESSION['confwiz_config']->set_UserSuffix($_POST['usersuffix'])) { $error = _("UserSuffix is invalid!"); } if (!$_SESSION['confwiz_config']->set_GroupSuffix($_POST['groupsuffix'])) { $error = _("GroupSuffix is invalid!"); } if (!$_SESSION['confwiz_config']->set_HostSuffix($_POST['hostsuffix'])) { $error = _("HostSuffix is invalid!"); } if ($_SESSION['confwiz_config']->is_samba3() && !$_SESSION['confwiz_config']->set_DomainSuffix($_POST['domainsuffix'])) { $error = _("DomainSuffix is invalid!"); } if (!$_SESSION['confwiz_config']->set_pwdhash($_POST['pwdhash'])) { $error = _("Password hash is invalid!"); } if (!$_SESSION['confwiz_config']->set_cacheTimeout($_POST['cachetimeout'])) { $error = _("Cache timeout is invalid!"); } $_SESSION['confwiz_config']->save(); // print error message if needed if (sizeof($errors) > 0) { echo $_SESSION['header']; echo "\n"; echo "\n"; echo _("Configuration wizard"); echo "\n"; echo "\n"; for ($i = 0; $i < sizeof($errors); $i++) { StatusMessage("ERROR", $errors[$i], ""); } echo "



" . _("Back to last page") . "

\n"; echo "\n"; } // if all ok, go to next page else { $_SESSION['confwiz_optional'] = array(); if ($_POST['ranges']) $_SESSION['confwiz_optional']['ranges'] = 'yes'; if ($_POST['lists']) $_SESSION['confwiz_optional']['lists'] = 'yes'; if ($_POST['lang']) $_SESSION['confwiz_optional']['lang'] = 'yes'; if ($_POST['daemon']) $_SESSION['confwiz_optional']['daemon'] = 'yes'; metarefresh('optional.php'); } } exit; } echo $_SESSION['header']; echo "\n"; echo _("Configuration wizard"); echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "

\n"; echo "\"LDAP\n"; echo "

\n"; echo "
\n"; // formular echo "
\n"; echo "

\n"; echo "\n"; // suffixes echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; if ($_SESSION['confwiz_config']->is_samba3()) { echo "\n"; echo "\n"; echo "\n"; echo "\n"; } echo "\n"; echo "\n"; // password hash echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; // cache timeout echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n"; echo _("Please enter the suffixes of your LDAP tree where LAM should store the accounts."); echo "
 
\n"; echo "" . _("UserSuffix") . ":\n"; echo "\n"; echo "get_userSuffix() . "\">\n"; echo "
\n"; echo "" . _("GroupSuffix") . ":\n"; echo "\n"; echo "get_groupSuffix() . "\">\n"; echo "
\n"; echo "" . _("HostSuffix") . ":\n"; echo "\n"; echo "get_hostSuffix() . "\">\n"; echo "
\n"; echo "" . _("DomainSuffix") . ":\n"; echo "\n"; echo "get_domainSuffix() . "\">\n"; echo "
 
 
\n"; echo _("LAM supports CRYPT, SHA, SSHA, MD5 and SMD5 to generate the hash value of an user password. SSHA and CRYPT are the most common but CRYPT does not support passwords greater than 8 letters. We do not recommend to use plain text passwords.") . "\n"; echo "
 
\n"; echo "" . _("Password hash type") . ":\n"; echo "\n"; echo "\n"); echo "
 
 
\n"; echo _("LAM caches its LDAP searches, you can set the cache time here. Shorter times will stress LDAP more but decrease the possibility that changes are not identified.") . "\n"; echo "
 
\n"; echo "" . _("Cache timeout") . ":\n"; echo "\n"; echo "\n"); echo "
\n"; echo "


\n"; // optional pages echo "
" . _("Optional settings") . "\n"; echo "

" . _("Please select here if you want to make additional changes to your configuration profile or if LAM should use default values.") . "

\n"; echo "" . _("Ranges for UID and GID numbers") . "
\n"; echo "" . _("Attributes in list views") . "
\n"; echo "" . _("Language and additional admin users") . "
\n"; echo "" . _("Lamdaemon settings and PDF text") . "
\n"; echo "
\n"; echo "


\n"; // next/cancel button echo "

\n"; echo "\n"; echo "\n"; echo "\n"; echo "

\n"; echo "
\n"; echo "\n\n"; ?>