diff options
Diffstat (limited to 'source4/dsdb/samdb')
-rw-r--r-- | source4/dsdb/samdb/ldb_modules/subtree_delete.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source4/dsdb/samdb/ldb_modules/subtree_delete.c b/source4/dsdb/samdb/ldb_modules/subtree_delete.c index 34f5ccae83..9ed44bebfe 100644 --- a/source4/dsdb/samdb/ldb_modules/subtree_delete.c +++ b/source4/dsdb/samdb/ldb_modules/subtree_delete.c @@ -46,8 +46,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, NULL); + ret = dsdb_module_search(module, req, &res, req->op.del.dn, + LDB_SCOPE_ONELEVEL, attrs, + DSDB_SEARCH_SHOW_DELETED, "(objectClass=*)"); if (ret != LDB_SUCCESS) { talloc_free(res); return ret; |