]> git.sur5r.net Git - openldap/commitdiff
Set appropriate error code, when trying to delete non-leaf
authorRalf Haferkamp <ralf@openldap.org>
Fri, 18 Mar 2011 10:50:44 +0000 (10:50 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Fri, 18 Mar 2011 10:50:44 +0000 (10:50 +0000)
entry from cn=config

servers/slapd/bconfig.c

index a24acb440a4e878dce7819a2fc60f4481013cf1e..2e853db53ce98d238d7e20c118bbc929236d5272 100644 (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 ||