Ignore samba NT_STATUS_PROTOCOL_UNREACHABLE errors

This commit is contained in:
Daniel Berteaud 2023-09-19 12:03:04 +02:00
parent 2cec18b4a5
commit 55c878cf24
1 changed files with 4 additions and 0 deletions

View File

@ -166,6 +166,10 @@ if (defined $ou){
my $subject;
if ($type eq 'Authentication'){
if ($event->{Authentication}->{status} eq 'NT_STATUS_PROTOCOL_UNREACHABLE'){
# Ignore NT_STATUS_PROTOCOL_UNREACHABLE as they are harmless
next;
}
# Accounts ending with $ are for computers
$subject = (($event->{$type}->{mappedAccount} || $event->{$type}->{clientAccount} || '')=~ m/\$(\@.+)?$/) ? 'computers' : 'users';
if ($event->{Authentication}->{status} eq 'NT_STATUS_OK'){