diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-02 21:23:34 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-06-07 14:47:20 +0200 |
commit | 0408ec11a9503a6e523651cc078334158c8c6f53 (patch) | |
tree | 89386eba504abd76d335674b4c85306abb542242 /source4/dsdb/samdb | |
parent | 6afa5a733c3ab12fd03e6980898e21f8d112bc3b (diff) | |
download | samba-0408ec11a9503a6e523651cc078334158c8c6f53.tar.gz samba-0408ec11a9503a6e523651cc078334158c8c6f53.tar.bz2 samba-0408ec11a9503a6e523651cc078334158c8c6f53.zip |
s4:objectclass LDB module - explain why the search can return with an empty return
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/objectclass.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 */ |