mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
ITS#3725 fix
This commit is contained in:
parent
812efa5723
commit
872b0a09fd
2 changed files with 6 additions and 5 deletions
|
|
@ -264,7 +264,7 @@ fe_op_add( Operation *op, SlapReply *rs )
|
|||
goto done;
|
||||
}
|
||||
|
||||
rs->sr_err = slap_mods_no_user_mod_check( op, modlist,
|
||||
rs->sr_err = slap_mods_obsolete_check( op, modlist,
|
||||
&rs->sr_text, textbuf, textlen );
|
||||
|
||||
if ( rs->sr_err != LDAP_SUCCESS ) {
|
||||
|
|
|
|||
|
|
@ -575,15 +575,16 @@ slap_mods_no_user_mod_check(
|
|||
for ( ; ml != NULL; ml = ml->sml_next ) {
|
||||
if ( !is_at_no_user_mod( ml->sml_desc->ad_type ) ) continue;
|
||||
|
||||
if ( ml->sml_desc->ad_type->sat_flags & SLAP_AT_MANAGEABLE ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if( get_manageDIT( op )) {
|
||||
if ( ml->sml_desc->ad_type->sat_flags & SLAP_AT_MANAGEABLE ) {
|
||||
continue;
|
||||
}
|
||||
|
||||
/* attribute not manageable */
|
||||
snprintf( textbuf, textlen,
|
||||
"%s: no-user-modification attribute not manageable",
|
||||
ml->sml_type.bv_val );
|
||||
|
||||
} else {
|
||||
/* user modification disallowed */
|
||||
snprintf( textbuf, textlen,
|
||||
|
|
|
|||
Loading…
Reference in a new issue