Blame SOURCES/0034-Ticket-48681-logconv.pl-fix-sasl-bind-stats.patch

74ca47
From e9514af2fed9f882a8d11d509ffb99e49a304438 Mon Sep 17 00:00:00 2001
74ca47
From: Mark Reynolds <mreynolds@redhat.com>
74ca47
Date: Tue, 2 May 2017 16:49:59 -0400
74ca47
Subject: [PATCH] Ticket 48681 - logconv.pl - fix sasl/bind stats
74ca47
74ca47
Description: Fixed the bind and sasl bind total counts, also adjusted the
74ca47
             v3 bind count to match the sasl bind.
74ca47
74ca47
https://pagure.io/389-ds-base/issue/48681
74ca47
74ca47
Reviewed by: firstyear(Thanks!)
74ca47
74ca47
(cherry picked from commit 770bf3a2341f1ea2e0778a6443b0f89ed77e73af)
74ca47
---
74ca47
 ldap/admin/src/logconv.pl | 3 +++
74ca47
 1 file changed, 3 insertions(+)
74ca47
74ca47
diff --git a/ldap/admin/src/logconv.pl b/ldap/admin/src/logconv.pl
74ca47
index 96639f2..c30e175 100755
74ca47
--- a/ldap/admin/src/logconv.pl
74ca47
+++ b/ldap/admin/src/logconv.pl
74ca47
@@ -2533,6 +2533,7 @@ sub parseLineNormal
74ca47
 	}
74ca47
 	if (/ BIND / && /method=sasl/i){
74ca47
 		$saslBindCount++;
74ca47
+		$bindCount++;
74ca47
 		if ($_ =~ /mech=(.*)/i ){
74ca47
 			my $mech = $1;
74ca47
 			$hashes->{saslmech}->{$mech}++;
74ca47
@@ -2550,6 +2551,8 @@ sub parseLineNormal
74ca47
 	if (/ RESULT err=14 tag=97 / && / SASL bind in progress/){
74ca47
 		# Drop the sasl bind count since this is step in the bind process
74ca47
 		$saslBindCount--;
74ca47
+		$bindCount--;
74ca47
+		$v3BindCount--;
74ca47
 		my ($conn, $op);
74ca47
 		if ($_ =~ /conn= *([0-9A-Z]+) +op= *([0-9\-]+)/i){
74ca47
 			$conn = $1;
74ca47
-- 
74ca47
2.9.3
74ca47