]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-ldbm/add.c
rework op/rs structures to deal with opeartional attributes
[openldap] / servers / slapd / back-ldbm / add.c
index 4bfeea620f70564497f318e6be92beb478371f22..e1dfbbbb8f7eccc45873f42e2226c333d434af5e 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 1998-2003 The OpenLDAP Foundation.
+ * Copyright 1998-2004 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -247,7 +247,7 @@ ldbm_back_add(
        } else {
                assert( pdn.bv_val == NULL || *pdn.bv_val == '\0' );
 
-               if ( !be_isroot( op->o_bd, &op->o_ndn )
+               if (( !be_isroot(op) && !be_shadow_update(op) )
                        && !is_entry_glue( op->oq_add.rs_e ))
                {
                        ldap_pvt_thread_rdwr_wunlock(&li->li_giant_rwlock);