From 81f4d8a6336bfd9fb59f61d1db1c01faa9e44d46 Mon Sep 17 00:00:00 2001 From: Steve Bauman Date: Sun, 30 May 2021 19:04:22 -0400 Subject: [PATCH] Always log LDAP bind errors when listening for bind failure --- src/Auth/ListensForLdapBindFailure.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Auth/ListensForLdapBindFailure.php b/src/Auth/ListensForLdapBindFailure.php index ce0052a9..3b0f4190 100644 --- a/src/Auth/ListensForLdapBindFailure.php +++ b/src/Auth/ListensForLdapBindFailure.php @@ -109,6 +109,8 @@ protected function ldapBindFailed($errorMessage, $diagnosticMessage = null) */ protected function handleLdapBindError($message, $code = null) { + logger()->error($message, compact('code')); + ($callback = static::$bindErrorHandler) ? $callback($message, $code) : $this->throwLoginValidationException($message);