From: Howard Chu Date: Fri, 30 Sep 2005 06:39:37 +0000 (+0000) Subject: ITS#4050 compare normalized DNs when detecting modrdn X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~346 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=024c4bb13f353e122c6c8b18599d9899b5a569f2;p=openldap ITS#4050 compare normalized DNs when detecting modrdn --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 429638165d..2a4220be9a 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -2227,10 +2227,11 @@ dn_callback( * discover if the deleteOldRdn argument applies here. It * would save an unnecessary Modify if we detected it, but * that's a fair amount of trouble to compare the two attr - * lists in detail. + * lists in detail. (Just test normalized DN; we ignore + * insignificant changes here.) */ - if ( !dn_match( &rs->sr_entry->e_name, - &dni->new_entry->e_name ) ) + if ( !dn_match( &rs->sr_entry->e_nname, + &dni->new_entry->e_nname ) ) { dni->renamed = 1; }