Skip to content
Snippets Groups Projects
Commit 4a60e78e authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

More for #6561 - delete returns NO_SUCH_ATTRIBUTE, not TYPE_OR_VALUE_EXISTS

parent 9e5af510
No related branches found
No related tags found
No related merge requests found
......@@ -153,7 +153,6 @@ int bdb_modify_internal(
mod->sm_desc->ad_cname.bv_val, 0, 0);
err = modify_delete_values( e, mod, get_permissiveModify(op),
text, textbuf, textlen );
assert( err != LDAP_TYPE_OR_VALUE_EXISTS );
if( err != LDAP_SUCCESS ) {
Debug(LDAP_DEBUG_ARGS, "bdb_modify_internal: %d %s\n",
err, *text, 0);
......@@ -229,7 +228,7 @@ int bdb_modify_internal(
mod->sm_op = SLAP_MOD_SOFTDEL;
if ( err == LDAP_TYPE_OR_VALUE_EXISTS ) {
if ( err == LDAP_NO_SUCH_ATTRIBUTE ) {
err = LDAP_SUCCESS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment