display attempts to admin
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user