Skip to content

Commit

Permalink
Always log LDAP bind errors when listening for bind failure
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed May 30, 2021
1 parent 0ea1567 commit 81f4d8a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Auth/ListensForLdapBindFailure.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 81f4d8a

Please sign in to comment.