Skip to content

Commit

Permalink
WBC_ERR_WINBIND_NOT_AVAILABLE is not an SSH login failure
Browse files Browse the repository at this point in the history
  • Loading branch information
themylogin committed Apr 22, 2021
1 parent b07cdc2 commit 5225286
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ def get_login_failures(now, messages):
if message.strip():
if message.startswith(yesterday):
if re.search(r"\b(fail(ures?|ed)?|invalid|bad|illegal|auth.*error)\b", message, re.I):
if "WBC_ERR_WINBIND_NOT_AVAILABLE" in message:
continue

login_failures.append(message)

if not message.startswith(yesterday) and not message.startswith(today):
Expand Down

0 comments on commit 5225286

Please sign in to comment.