print "<p class=\"error\"><strong>Error:</strong> There's no LDAP password input.</p>\n"; HTMLFooter(); die; } if (isset($_POST["ldap_base"]) && $_POST["ldap_base"] != "") { $ldap_base = $_POST["ldap_base"]; } else { print "<p class=\"error\"><strong>Error:</strong> There's no distinguished name input for LDAP.</p>\n"; HTMLFooter(); die; } // check LDAP connection require_once PMF_ROOT_DIR . "/inc/ldap.php"; $ldap = new LDAP($ldap_server, $ldap_port, $ldap_user, $ldap_base); if (!$ldap) { print "<p class=\"error\"><strong>LDAP Error:</strong> " . $ldap->error() . "</p>\n"; HTMLFooter(); die; } } // check user entries if (isset($_POST["password"]) && $_POST["password"] != "") { $password = $_POST["password"]; } else { print "<p class=\"error\"><strong>Error:</strong> There's no password for the administrator's account. Please set your password.</p>\n"; HTMLFooter(); die; } if (isset($_POST["password_retyped"]) && $_POST["password_retyped"] != "") { $password_retyped = $_POST["password_retyped"]; } else {