From 0408ec11a9503a6e523651cc078334158c8c6f53 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Wed, 2 Jun 2010 21:23:34 +0200 Subject: s4:objectclass LDB module - explain why the search can return with an empty return --- source4/dsdb/samdb/ldb_modules/objectclass.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/dsdb/samdb/ldb_modules/objectclass.c b/source4/dsdb/samdb/ldb_modules/objectclass.c index 22993e4080..9a31115533 100644 --- a/source4/dsdb/samdb/ldb_modules/objectclass.c +++ b/source4/dsdb/samdb/ldb_modules/objectclass.c @@ -469,7 +469,8 @@ static int objectclass_do_add(struct oc_context *ac) msg = ldb_msg_copy_shallow(ac, ac->req->op.add.message); - /* Check we have a valid parent */ + /* Check if we have a valid parent - this check is needed since + * we don't get a LDB_ERR_NO_SUCH_OBJECT error. */ if (ac->search_res == NULL) { if (ldb_dn_compare(ldb_get_root_basedn(ldb), msg->dn) == 0) { /* Allow the tree to be started */ -- cgit