]> git.sur5r.net Git - openldap/commitdiff
partially revert previous commit
authorPierangelo Masarati <ando@openldap.org>
Fri, 4 Nov 2005 07:57:54 +0000 (07:57 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 4 Nov 2005 07:57:54 +0000 (07:57 +0000)
servers/slapd/back-bdb/add.c

index f94cfa119ef81925af36eddc8e4eb4a0d90efdc7..8455a28bcabc1d19ad97db96c91c666aefcbec85 100644 (file)
@@ -51,8 +51,9 @@ bdb_add(Operation *op, SlapReply *rs )
 
        ctrls[num_ctrls] = 0;
 
-       if ( !SLAP_SHADOW( op->o_bd ))
-               slap_add_opattrs( op, &rs->sr_text, textbuf, textlen, 1 );
+       /* add opattrs to shadow as well, only missing attrs will actually
+        * be added; helps compatibility with older OL versions */
+       slap_add_opattrs( op, &rs->sr_text, textbuf, textlen, 1 );
 
        /* check entry's schema */
        rs->sr_err = entry_schema_check( op, op->oq_add.rs_e, NULL,