Pārlūkot izejas kodu

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 gadi atpakaļ
vecāks
revīzija
df54e31e90
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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)
 	{