]> git.sur5r.net Git - openldap/commitdiff
ITS#4050 compare normalized DNs when detecting modrdn
authorHoward Chu <hyc@openldap.org>
Fri, 30 Sep 2005 06:39:37 +0000 (06:39 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 30 Sep 2005 06:39:37 +0000 (06:39 +0000)
servers/slapd/syncrepl.c

index 429638165d3516e79146d68f203d8dfaf832fe11..2a4220be9a8c1a0b2943b5b40670a542267c2c6d 100644 (file)
@@ -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;
                                }