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