1 <% page_header("columns", "ESP ldb test", "esptest"); %>
3 <h1>Samba4 ldb test</h1>
5 <h3>An attribute constrained search</h3>
8 var lp = loadparm_init();
9 var dbfile = lp.get("sam database");
10 var attrs = new Array("name", "dnsDomain", "objectSid", "dn");
12 ldb.session_info = session.authinfo.session_info;
14 var ok = ldb.connect(dbfile);
17 res = ldb.search("(objectClass=domain)", NULL, ldb.SCOPE_DEFAULT, attrs);
18 multi_table(res, "dn");
21 <h3>An unconstrained search</h3>
24 res = ldb.search("(objectClass=user)");
25 multi_table(res, "dn");
28 <h3>A search with bad arguments</h3>
31 res = ldb.search("=blah", "foo");