]> git.sur5r.net Git - openldap/commitdiff
ITS#3056 partial fix - from a slurpd perspective, the updatedn
authorKurt Zeilenga <kurt@openldap.org>
Tue, 6 Apr 2004 19:32:17 +0000 (19:32 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 6 Apr 2004 19:32:17 +0000 (19:32 +0000)
should be allowed to the entry at the naming prefix (database suffix).

servers/slapd/back-bdb/add.c
servers/slapd/back-ldbm/add.c

index 451bfaff6c44d7a98533aa2cdef71bba39734443..6e7ccdb9b029cbd5f8e997f2e8edf8f7c7e18820 100644 (file)
@@ -298,7 +298,7 @@ retry:      /* transaction retry */
                 * no parent!
                 *  if not attempting to add entry at suffix or with parent ""
                 */
-               if (( !be_isroot( op ) || pdn.bv_len > 0 )
+               if ((( !be_isroot( op ) && !be_isupdate(op)) || pdn.bv_len > 0 )
                        && !is_entry_glue( op->oq_add.rs_e ))
                {
 #ifdef NEW_LOGGING
index b9bc4bc7b2b2c77938ed45017245559d85560d66..d621eeb2a89291db3d33f2fdd391023ff7e558c2 100644 (file)
@@ -247,8 +247,8 @@ ldbm_back_add(
        } else {
                assert( pdn.bv_val == NULL || *pdn.bv_val == '\0' );
 
-               if ( !be_isroot( op )
-                       && !is_entry_glue( op->oq_add.rs_e ))
+               if (( !be_isroot( op ) && !be_isupdate( op )) &&
+                       !is_entry_glue( op->oq_add.rs_e ))
                {
                        ldap_pvt_thread_rdwr_wunlock(&li->li_giant_rwlock);