From d0ad4b3f3e5da5b2bd3608884a2637a7a277c96e Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 31 Jul 2005 05:19:37 +0000 Subject: [PATCH] Allow overlays to override operational attributes on add (needed to preserve 2.2 SLAPI behaviour; see comments for further info) --- servers/slapd/add.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/servers/slapd/add.c b/servers/slapd/add.c index 392a6c68e2..d0fcef1dbe 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -418,6 +418,17 @@ slap_mods2entry( #ifdef SLURPD_FRIENDLY ber_len_t i,j; + if ( !initial ) { + /* + * This check allows overlays to override operational + * attributes by setting them directly in the entry. + * We assume slap_mods_no_user_mod_check() was called + * with the user modifications. + */ + *text = NULL; + return LDAP_SUCCESS; + } + for( i=0; attr->a_vals[i].bv_val; i++ ) { /* count them */ } -- 2.39.5