From a00f337acd425b58da7d78add1420d7bf4129b05 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Fri, 4 Nov 2005 07:57:54 +0000 Subject: [PATCH] partially revert previous commit --- servers/slapd/back-bdb/add.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-bdb/add.c b/servers/slapd/back-bdb/add.c index f94cfa119e..8455a28bca 100644 --- a/servers/slapd/back-bdb/add.c +++ b/servers/slapd/back-bdb/add.c @@ -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, -- 2.39.2