summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb
diff options
context:
space:
mode:
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r--source4/dsdb/samdb/ldb_modules/objectclass.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c
index cd45963f37..005f0f2820 100644
--- a/source4/dsdb/samdb/ldb_modules/objectclass.c
+++ b/source4/dsdb/samdb/ldb_modules/objectclass.c
@@ -1005,6 +1005,9 @@ static int objectclass_do_mod(struct oc_context *ac)
}
if (!found) {
/* we cannot delete a not existing object class */
+ ldb_asprintf_errstring(ldb, "Cannot delete this %.*s ",
+ (int)oc_el_change->values[i].length, (const char *)oc_el_change->values[i].data);
+
talloc_free(mem_ctx);
return LDB_ERR_NO_SUCH_ATTRIBUTE;
}