Fix counting samba computers auth tries
This commit is contained in:
parent
7cfbd64eb4
commit
5acc49a55c
|
@ -167,7 +167,7 @@ if (defined $ou){
|
|||
my $subject;
|
||||
if ($type eq 'Authentication'){
|
||||
# Accounts ending with $ are for computers
|
||||
$subject = (($event->{$type}->{mappedAccount} || $event->{$type}->{clientAccount} || '')=~ m/\$$/) ? 'computers' : 'users';
|
||||
$subject = (($event->{$type}->{mappedAccount} || $event->{$type}->{clientAccount} || '')=~ m/\$(\@.+)?$/) ? 'computers' : 'users';
|
||||
if ($event->{Authentication}->{status} eq 'NT_STATUS_OK'){
|
||||
$json->{activity}->{authentications}->{$subject}->{success}++;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue