Blame SOURCES/0013-Ticket-50428-Log-the-actual-base-DN-when-the-search-.patch

232633
From a4f09a83a8899b52e1cf6a96b75483c576dd5bb2 Mon Sep 17 00:00:00 2001
232633
From: Thierry Bordaz <tbordaz@redhat.com>
232633
Date: Fri, 7 Jun 2019 11:35:46 +0200
232633
Subject: [PATCH] Ticket 50428 - Log the actual base DN when the search fails
232633
 with "invalid attribute request"
232633
232633
Bug Description:
232633
	When a search request contains invalid parameters (attribute list with empty attribute
232633
	name, unknown scope, invalid filter..) the search is rejected but the access log
232633
	contains a wrong base search: ... SRCH base="(null)"...
232633
	This is because it does not use for logging the variable that gather the actual base ('rawbase')
232633
232633
Fix Description:
232633
	Use 'rawbase' value for logging
232633
232633
https://pagure.io/389-ds-base/issue/50428
232633
232633
Reviewed by: Mark Reynolds
232633
232633
Platforms tested: F28
232633
232633
Flag Day: no
232633
232633
Doc impact: no
232633
---
232633
 ldap/servers/slapd/search.c | 1 +
232633
 1 file changed, 1 insertion(+)
232633
232633
diff --git a/ldap/servers/slapd/search.c b/ldap/servers/slapd/search.c
232633
index 953227ba0..75accbba6 100644
232633
--- a/ldap/servers/slapd/search.c
232633
+++ b/ldap/servers/slapd/search.c
232633
@@ -154,6 +154,7 @@ do_search(Slapi_PBlock *pb)
232633
             goto free_and_return;
232633
         }
232633
     }
232633
+    base = rawbase;
232633
 
232633
     /*
232633
      * ignore negative time and size limits since they make no sense
232633
-- 
232633
2.21.0
232633