Blame SOURCES/0018-Issue-4480-Unexpected-info-returned-to-ldap-request-.patch

27c138
From 6e827f6d5e64e0be316f4e17111b2884899d302c Mon Sep 17 00:00:00 2001
27c138
From: tbordaz <tbordaz@redhat.com>
27c138
Date: Wed, 16 Dec 2020 16:30:28 +0100
27c138
Subject: [PATCH] Issue 4480 - Unexpected info returned to ldap request (#4491)
27c138
27c138
Bug description:
27c138
	If the bind entry does not exist, the bind result info
27c138
        reports that 'No such entry'. It should not give any
27c138
        information if the target entry exists or not
27c138
27c138
Fix description:
27c138
	Does not return any additional information during a bind
27c138
27c138
relates: https://github.com/389ds/389-ds-base/issues/4480
27c138
27c138
Reviewed by: William Brown, Viktor Ashirov, Mark Reynolds (thank you all)
27c138
27c138
Platforms tested:  F31
27c138
---
27c138
 dirsrvtests/tests/suites/basic/basic_test.py | 1 -
27c138
 ldap/servers/slapd/back-ldbm/ldbm_config.c   | 2 +-
27c138
 ldap/servers/slapd/result.c                  | 2 +-
27c138
 3 files changed, 2 insertions(+), 3 deletions(-)
27c138
27c138
diff --git a/dirsrvtests/tests/suites/basic/basic_test.py b/dirsrvtests/tests/suites/basic/basic_test.py
27c138
index 120207321..1ae82dcdd 100644
27c138
--- a/dirsrvtests/tests/suites/basic/basic_test.py
27c138
+++ b/dirsrvtests/tests/suites/basic/basic_test.py
27c138
@@ -1400,7 +1400,6 @@ def test_dscreate_multiple_dashes_name(dscreate_long_instance):
27c138
     assert not dscreate_long_instance.exists()
27c138
 
27c138
 
27c138
-
27c138
 if __name__ == '__main__':
27c138
     # Run isolated
27c138
     # -s for DEBUG mode
27c138
diff --git a/ldap/servers/slapd/back-ldbm/ldbm_config.c b/ldap/servers/slapd/back-ldbm/ldbm_config.c
27c138
index 3fe86d567..10cef250f 100644
27c138
--- a/ldap/servers/slapd/back-ldbm/ldbm_config.c
27c138
+++ b/ldap/servers/slapd/back-ldbm/ldbm_config.c
27c138
@@ -1234,7 +1234,7 @@ ldbm_config_search_entry_callback(Slapi_PBlock *pb __attribute__((unused)),
27c138
             if (attrs) {
27c138
                 for (size_t i = 0; attrs[i]; i++) {
27c138
                     if (ldbm_config_moved_attr(attrs[i])) {
27c138
-                        slapi_pblock_set(pb, SLAPI_PB_RESULT_TEXT, "at least one required attribute has been moved to the BDB scecific configuration entry");
27c138
+                        slapi_pblock_set(pb, SLAPI_RESULT_TEXT, "at least one required attribute has been moved to the BDB scecific configuration entry");
27c138
                         break;
27c138
                     }
27c138
                 }
27c138
diff --git a/ldap/servers/slapd/result.c b/ldap/servers/slapd/result.c
27c138
index 9daf3b151..ab0d79454 100644
27c138
--- a/ldap/servers/slapd/result.c
27c138
+++ b/ldap/servers/slapd/result.c
27c138
@@ -355,7 +355,7 @@ send_ldap_result_ext(
27c138
     if (text) {
27c138
         pbtext = text;
27c138
     } else {
27c138
-        slapi_pblock_get(pb, SLAPI_PB_RESULT_TEXT, &pbtext);
27c138
+        slapi_pblock_get(pb, SLAPI_RESULT_TEXT, &pbtext);
27c138
     }
27c138
 
27c138
     if (operation == NULL) {
27c138
-- 
27c138
2.26.2
27c138