From: Luke Howard Date: Sun, 31 Jul 2005 05:19:37 +0000 (+0000) Subject: Allow overlays to override operational attributes on add (needed X-Git-Tag: OPENLDAP_AC_BP~135 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d0ad4b3f3e5da5b2bd3608884a2637a7a277c96e;p=openldap Allow overlays to override operational attributes on add (needed to preserve 2.2 SLAPI behaviour; see comments for further info) --- 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 */ }