Monday, June 13, 2016

[389-commits] ldap/servers

ldap/servers/slapd/back-ldbm/ldbm_modrdn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e2765ce8f49de5a259ba84e204111c8dfaa60a8e
Author: Noriko Hosoi <nhosoi@redhat.com>
Date: Mon Jun 6 14:03:22 2016 -0700

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

diff --git a/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c b/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c
index d31594c..fd74d5f 100644
--- a/ldap/servers/slapd/back-ldbm/ldbm_modrdn.c
+++ b/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)

--
389-commits mailing list
389-commits@lists.fedoraproject.org
https://lists.fedoraproject.org/admin/lists/389-commits@lists.fedoraproject.org

No comments:

Post a Comment