From 682f7a53383f1c72f53fc5238f4ca2db348f9df3 Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Mon, 28 Jun 2010 21:28:46 +0300 Subject: s4-source4/dsdb/samdb/ldb_modules/subtree_delete.c: Use DSDB_FLAG_NEXT_MODULE flag Signed-off-by: Andrew Bartlett --- source4/dsdb/samdb/ldb_modules/subtree_delete.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4/dsdb/samdb/ldb_modules') diff --git a/source4/dsdb/samdb/ldb_modules/subtree_delete.c b/source4/dsdb/samdb/ldb_modules/subtree_delete.c index a29de8e910..4782702ae5 100644 --- a/source4/dsdb/samdb/ldb_modules/subtree_delete.c +++ b/source4/dsdb/samdb/ldb_modules/subtree_delete.c @@ -52,7 +52,9 @@ static int subtree_delete(struct ldb_module *module, struct ldb_request *req) /* see if we have any children */ ret = dsdb_module_search(module, req, &res, req->op.del.dn, LDB_SCOPE_ONELEVEL, attrs, - DSDB_SEARCH_SHOW_DELETED, "(objectClass=*)"); + DSDB_FLAG_NEXT_MODULE | + DSDB_SEARCH_SHOW_DELETED, + "(objectClass=*)"); if (ret != LDB_SUCCESS) { talloc_free(res); return ret; -- cgit