summaryrefslogtreecommitdiff
path: root/swat
diff options
context:
space:
mode:
Diffstat (limited to 'swat')
-rw-r--r--swat/esptest/ldb.esp7
1 files changed, 4 insertions, 3 deletions
diff --git a/swat/esptest/ldb.esp b/swat/esptest/ldb.esp
index 385a8918c6..be894a1ea9 100644
--- a/swat/esptest/ldb.esp
+++ b/swat/esptest/ldb.esp
@@ -7,8 +7,9 @@
<%
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);
multi_table(res, "dn");
%>
@@ -17,14 +18,14 @@ multi_table(res, "dn");
<%
var dbfile = lpGet("sam database");
-res = ldbSearch(dbfile, "(objectClass=user)");
+res = ldb.search(dbfile, "(objectClass=user)");
multi_table(res, "dn");
%>
<h3>A search with bad arguments</h3>
<%
-res = ldbSearch("foo");
+res = ldb.search("foo");
%>
all done