summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/libjs/provision.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/scripting/libjs/provision.js b/source4/scripting/libjs/provision.js
index 101110ea3e..6b76d2bc1f 100644
--- a/source4/scripting/libjs/provision.js
+++ b/source4/scripting/libjs/provision.js
@@ -157,7 +157,7 @@ function ldb_erase(ldb)
for (i=0;i<res.length;i++) {
ldb.del(res[i].dn);
}
- res = ldb.search("(objectclass=*)", attrs);
+ res = ldb.search("(|(objectclass=*)(dn=*))", attrs);
if (res.length != 0) {
ldb_delete(ldb);
return;
@@ -165,7 +165,6 @@ function ldb_erase(ldb)
assert(res.length == 0);
}
-
/*
setup a ldb in the private dir
*/