Browse Source

Ticket #48848 - modrdn deleteoldrdn can fail to find old attribute value, perhaps due to case folding

Bug Description: To replace an RDN witch type is case exact match fails
since ldbm_back_modrdn passed fully normalized value regardless of the
type.

Fix Description: Instead, it is being changed to pass the RDN maintaining
the original cases to moddn_newrdn_mods, in which the old rdn is correctly
identified both for the type ces and cis.

https://fedorahosted.org/389/ticket/48848
Noriko Hosoi 9 years ago
parent
commit
e2765ce8f4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ldap/servers/slapd/back-ldbm/ldbm_modrdn.c

+ 1 - 1
ldap/servers/slapd/back-ldbm/ldbm_modrdn.c

@@ -751,7 +751,7 @@ ldbm_back_modrdn( Slapi_PBlock *pb )
             /* Build the list of modifications required to the existing entry */
             slapi_mods_init(&smods_generated,4);
             slapi_mods_init(&smods_generated_wsi,4);
-            ldap_result_code = moddn_newrdn_mods(pb, slapi_sdn_get_ndn(sdn),
+            ldap_result_code = moddn_newrdn_mods(pb, slapi_sdn_get_dn(sdn),
                                 ec, &smods_generated_wsi, is_replicated_operation);
             if (ldap_result_code != LDAP_SUCCESS) {
                 if (ldap_result_code == LDAP_UNWILLING_TO_PERFORM)