Allow overlays to override operational attributes on add (needed

to preserve 2.2 SLAPI behaviour; see comments for further info)
This commit is contained in:
Luke Howard 2005-07-31 05:19:37 +00:00
parent 30610c6f70
commit d0ad4b3f3e

View file

@ -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 */
}