소스 검색

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 년 전
부모
커밋
df54e31e90
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
 	{