diff options
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/objectclass.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 4cbb1897fe..0c0590251c 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -398,9 +398,10 @@ static int objectclass_add(struct ldb_module *module, struct ldb_request *req) } } - /* the objectClass must be specified on add */ - if (ldb_msg_find_element(req->op.add.message, - "objectClass") == NULL) { + /* the various objectclasses must be specified on add operations */ + if (ldb_msg_find_element(req->op.add.message, "objectClass") == NULL) { + ldb_asprintf_errstring(ldb, "objectclass: Cannot add %s, no objectclass specified!", + ldb_dn_get_linearized(req->op.add.message->dn)); return LDB_ERR_OBJECT_CLASS_VIOLATION; } |