From: Ralf Haferkamp Date: Fri, 18 Mar 2011 10:50:44 +0000 (+0000) Subject: Set appropriate error code, when trying to delete non-leaf X-Git-Tag: MIGRATION_CVS2GIT~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c70165c294c9f8c1c1f8bde090a8f6f4d33606d8;p=openldap Set appropriate error code, when trying to delete non-leaf entry from cn=config --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index a24acb440a..2e853db53c 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -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 ||