summaryrefslogtreecommitdiff
path: root/source4/dsdb/samdb/ldb_modules
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-02-08 12:08:36 +0100
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-02-08 12:08:36 +0100
commita8d6549cccb375c95a047fea68f5af2a186979ea (patch)
treea93f88393e8705ba7d8b2f485ce893b42183885e /source4/dsdb/samdb/ldb_modules
parent89c089d9934d233a6753d0536c900a2f264fc03d (diff)
downloadsamba-a8d6549cccb375c95a047fea68f5af2a186979ea.tar.gz
samba-a8d6549cccb375c95a047fea68f5af2a186979ea.tar.bz2
samba-a8d6549cccb375c95a047fea68f5af2a186979ea.zip
s4:subtree_delete - "NULL" as format string isn't allowed on FreeBSD
I changed the format string into "(objectClass=*)" which should be an equivalent expression for choosing all available objects. Consider bug 7115 for the issue.
Diffstat (limited to 'source4/dsdb/samdb/ldb_modules')
-rw-r--r--source4/dsdb/samdb/ldb_modules/subtree_delete.c5
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;