summaryrefslogtreecommitdiff
path: root/swat/esptest/ldb.esp
blob: 385a8918c6ae5176d6f1b51af3fef84ad4ce16bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<% page_header("columns", "ESP ldb test"); %>

<h1>Samba4 ldb test</h1>

<h3>An attribute constrained search</h3>

<%
var dbfile = lpGet("sam database");
var attrs = new Array("name", "dnsDomain", "objectSid", "dn");

res = ldbSearch(dbfile, "(objectClass=domain)", attrs);
multi_table(res, "dn");
%>

<h3>An unconstrained search</h3>

<%
var dbfile = lpGet("sam database");

res = ldbSearch(dbfile, "(objectClass=user)");
multi_table(res, "dn");
%>

<h3>A search with bad arguments</h3>

<%
res = ldbSearch("foo");
%>

all done

<% page_footer() %>