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

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