Jelajahi Sumber

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.

Noriko Hosoi 14 tahun lalu
induk
melakukan
df54e31e90
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      ldap/servers/slapd/rdn.c

+ 1 - 1
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)
 	{