diff options
Diffstat (limited to 'testprogs')
-rw-r--r-- | testprogs/ejs/ldb.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testprogs/ejs/ldb.js b/testprogs/ejs/ldb.js index 7675197904..133de27aef 100644 --- a/testprogs/ejs/ldb.js +++ b/testprogs/ejs/ldb.js @@ -6,19 +6,20 @@ println("Trying a attribute constrained search on samdb"); var dbfile = lpGet("sam database"); var attrs = new Array("name", "dnsDomain", "objectSid", "dn"); +var ldb = ldb_init(); -res = ldbSearch(dbfile, "(objectClass=domain)", attrs); +res = ldb.search(dbfile, "(objectClass=domain)", attrs); printVars(res); println("and now an unconstrained search"); var dbfile = lpGet("sam database"); -res = ldbSearch(dbfile, "(objectClass=user)"); +res = ldb.search(dbfile, "(objectClass=user)"); printVars(res); println("and a bad search"); -res = ldbSearch("foo"); +res = ldb.search("foo"); println("all done"); |