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

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