summaryrefslogtreecommitdiff
path: root/testprogs
diff options
context:
space:
mode:
Diffstat (limited to 'testprogs')
-rw-r--r--testprogs/ejs/ldb.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/testprogs/ejs/ldb.js b/testprogs/ejs/ldb.js
index 133de27aef..f27f49c7a4 100644
--- a/testprogs/ejs/ldb.js
+++ b/testprogs/ejs/ldb.js
@@ -15,11 +15,12 @@ printVars(res);
println("and now an unconstrained search");
var dbfile = lpGet("sam database");
-res = ldb.search(dbfile, "(objectClass=user)");
+var db = ldb.connect(dbfile);
+res = ldb.search(db, "(objectClass=user)");
printVars(res);
println("and a bad search");
-res = ldb.search("foo");
+res = ldb.search(db, "foo");
println("all done");