From c70165c294c9f8c1c1f8bde090a8f6f4d33606d8 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Fri, 18 Mar 2011 10:50:44 +0000 Subject: [PATCH] Set appropriate error code, when trying to delete non-leaf entry from cn=config --- servers/slapd/bconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 || -- 2.39.5