Set appropriate error code, when trying to delete non-leaf

entry from cn=config
This commit is contained in:
Ralf Haferkamp 2011-03-18 10:50:44 +00:00
parent 0ae659ad87
commit c70165c294

View file

@ -6177,7 +6177,7 @@ config_back_delete( Operation *op, SlapReply *rs )
rs->sr_matched = last->ce_entry->e_name.bv_val;
rs->sr_err = LDAP_NO_SUCH_OBJECT;
} else if ( ce->ce_kids ) {
rs->sr_err = LDAP_UNWILLING_TO_PERFORM;
rs->sr_err = LDAP_NOT_ALLOWED_ON_NONLEAF;
} else if ( op->o_abandon ) {
rs->sr_err = SLAPD_ABANDON;
} else if ( ce->ce_type == Cft_Overlay ||