% page_header("columns", "ESP ldb test"); %>
Samba4 ldb test
An attribute constrained search
<%
var dbfile = lpGet("sam database");
var attrs = new Array("name", "dnsDomain", "objectSid", "dn");
res = ldbSearch(dbfile, "(objectClass=domain)", attrs);
multi_table(res, "dn");
%>
An unconstrained search
<%
var dbfile = lpGet("sam database");
res = ldbSearch(dbfile, "(objectClass=user)");
multi_table(res, "dn");
%>
A search with bad arguments
<%
res = ldbSearch("foo");
%>
all done
<% page_footer() %>