File 0003-Revert-Issue-6417-If-an-entry-RDN-is-identical-to-th.patch of Package 389-ds.39635

From d8eeef6db92d89b1053d6266e880ca9b7c22a831 Mon Sep 17 00:00:00 2001
From: William <william@blackhats.net.au>
Date: Wed, 2 Jul 2025 12:56:42 +1000
Subject: [PATCH 3/3] Revert "Issue 6417 - If an entry RDN is identical to the
 suffix, then Entryrdn gets broken during a reindex (#6418)"

This reverts commit cd07157a6fe8c059e86ec3566050ef6ede4699cd.
---
 ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c b/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
index d70ea0471..7a99d8128 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
+++ b/ldap/servers/slapd/back-ldbm/ldbm_entryrdn.c
@@ -1103,16 +1103,7 @@ entryrdn_lookup_dn(backend *be,
                     }
                     goto bail;
                 }
-                if (workid == 1) {
-                    /* The loop (workid) iterates from the starting 'id'
-                     * up to the suffix ID (i.e. '1').
-                     * A corner case (#6417) is if an entry, on the path
-                     * 'id' -> suffix, has the same RDN than the suffix.
-                     * In order to erroneously believe the loop hits the suffix
-                     * we need to check that 'workid' is '1' (suffix)
-                     */
-                    maybesuffix = 1;
-                }
+                maybesuffix = 1;
             } else {
                 _entryrdn_cursor_print_error("entryrdn_lookup_dn",
                                              key.data, data.size, data.ulen, rc);
-- 
2.50.0

openSUSE Build Service is sponsored by