]> git.sur5r.net Git - openldap/commitdiff
fix for ITS#2947
authorJong Hyuk Choi <jongchoi@openldap.org>
Fri, 6 Feb 2004 22:41:55 +0000 (22:41 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Fri, 6 Feb 2004 22:41:55 +0000 (22:41 +0000)
servers/slapd/syncrepl.c

index a77e2c6bcb4dd822456bf8047da1b47ddc0f458f..9953eee7a94d2602a80a5a788219c4b312b66bfd 100644 (file)
@@ -1121,7 +1121,8 @@ syncrepl_entry(
        case LDAP_SYNC_MODIFY:
                if ( rc == LDAP_SUCCESS ||
                         rc == LDAP_REFERRAL ||
-                        rc == LDAP_NO_SUCH_OBJECT )
+                        rc == LDAP_NO_SUCH_OBJECT ||
+                        rc == LDAP_NOT_ALLOWED_ON_NONLEAF )
                {
                        attr_delete( &e->e_attrs, slap_schema.si_ad_entryUUID );
                        attr_merge_one( e, slap_schema.si_ad_entryUUID,
@@ -1134,7 +1135,7 @@ syncrepl_entry(
                        rc = be->be_add( op, &rs );
 
                        if ( rc != LDAP_SUCCESS ) {
-                               if ( rc == LDAP_ALREADY_EXISTS ) {      
+                               if ( rc == LDAP_ALREADY_EXISTS ) {
                                        op->o_tag = LDAP_REQ_MODIFY;
                                        op->orm_modlist = modlist;
                                        op->o_req_dn = e->e_name;