From 00aeca7d7f6a940b208e7549e0d7c88f744f1d63 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Tue, 23 Feb 2010 16:03:16 +0300 Subject: dsdb: Add a more explicit error message for constructed attributes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Matthias Dieter Wallnöfer --- source4/dsdb/samdb/ldb_modules/objectclass.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/dsdb/samdb') diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 475b53a7cb..8bcac1153b 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -364,6 +364,7 @@ static int fix_check_attributes(struct ldb_context *ldb, /* We have to deny write operations on constructed attributes */ if ((attribute->systemFlags & DS_FLAG_ATTR_IS_CONSTRUCTED) != 0) { + ldb_asprintf_errstring(ldb, "attribute %s is constructed", msg->elements[i].name); if (op == LDB_ADD) { return LDB_ERR_UNDEFINED_ATTRIBUTE_TYPE; } else { -- cgit