ldap/servers/slapd/rdn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit df54e31e9010911efbbc3032be0f43c4cd367d7f
Author: Noriko Hosoi <nhosoi(a)redhat.com>
Date: Wed Apr 13 18:37:17 2011 -0700
Bug 696407 - If an entry with a mixed case RDN is turned to be
a tombstone, it fails to assemble DN from entryrdn
https://bugzilla.redhat.com/show_bug.cgi?id=696407
Description: When an entry is turned to be a tombstone, the RDN
part is replaced with this unusual format:
"nsuniqueid=9a63a581-...-ca8fe9f7,uid=TestUser"
A helper function slapi_rdn_replace_rdn was introduced to support
the replace task, in which function, normalized rdn field "nrdn"
was supposed to have lowered case RDN, but it was not. This patch
fixes it.
diff --git a/ldap/servers/slapd/rdn.c b/ldap/servers/slapd/rdn.c
index 758c16b..48d4d9e 100644
--- a/ldap/servers/slapd/rdn.c
+++ b/ldap/servers/slapd/rdn.c
@@ -990,7 +990,7 @@ slapi_rdn_replace_rdn(Slapi_RDN *srdn, char *new_rdn)
slapi_ch_free_string(&(srdn->rdn));
slapi_ch_free_string(&(srdn->nrdn));
srdn->rdn = slapi_ch_strdup(new_rdn);
- srdn->nrdn = slapi_ch_strdup(srdn->rdn);
+ normalize_case_helper(new_rdn, &srdn->nrdn);
if (srdn->all_rdns)
{