2 demonstrate access to ldb databases from ejs
5 println("Trying a attribute constrained search on samdb");
7 var dbfile = lpGet("sam database");
8 var attrs = new Array("name", "dnsDomain", "objectSid", "dn");
10 res = ldbSearch(dbfile, "(objectClass=domain)", attrs);
14 println("and now an unconstrained search");
16 var dbfile = lpGet("sam database");
17 res = ldbSearch(dbfile, "(objectClass=user)");
20 println("and a bad search");
22 res = ldbSearch("foo");