display attempts to admin

This commit is contained in:
2025-03-26 20:48:39 +01:00
parent db2079e0b3
commit 45b9cc7dfa
9 changed files with 443 additions and 26 deletions

View File

@@ -11,12 +11,9 @@ $password = rtrim($_POST["password"]);
require_once "ldap.php";
$result = LdapConnect($domain, $user, $password, []);
$result = LdapIsConnected($domain, $user, $password, []);
ldap_parse_result($handle, $result, $error_code, $matched_dn, $error_message, $referrals, $controls);
if ($error_code != 0) {
if (!$result) {
require_once "templates/login_failed.html";
exit;
}
@@ -29,5 +26,4 @@ $body = PrintLoginInfo($info);
require_once "templates/login_success.html.php";
// TODO: Mettre les tentatives dans la db
// TODO: ldaps