summaryrefslogtreecommitdiff
path: root/swat
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-07-15 09:23:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:23:08 -0500
commit4f62205cad46539cc459efe106c0a036f08ed0b9 (patch)
treeb49ec98e0dab71b213347c65799f65a618e18a89 /swat
parent32b06d5882a6fc93692815392e0a94d0709bc273 (diff)
downloadsamba-4f62205cad46539cc459efe106c0a036f08ed0b9.tar.gz
samba-4f62205cad46539cc459efe106c0a036f08ed0b9.tar.bz2
samba-4f62205cad46539cc459efe106c0a036f08ed0b9.zip
r8486: switched to a separate connection operation in ldb interface
(a suggestion from simo) (This used to be commit 98c9c4ecb87e1b140002390067892806464849da)
Diffstat (limited to 'swat')
-rw-r--r--swat/esptest/ldb.esp9
1 files changed, 4 insertions, 5 deletions
diff --git a/swat/esptest/ldb.esp b/swat/esptest/ldb.esp
index be894a1ea9..38a0422c50 100644
--- a/swat/esptest/ldb.esp
+++ b/swat/esptest/ldb.esp
@@ -8,24 +8,23 @@
var dbfile = lpGet("sam database");
var attrs = new Array("name", "dnsDomain", "objectSid", "dn");
var ldb = ldb_init();
+var db = ldb.connect(dbfile);
-res = ldb.search(dbfile, "(objectClass=domain)", attrs);
+res = ldb.search(db, "(objectClass=domain)", attrs);
multi_table(res, "dn");
%>
<h3>An unconstrained search</h3>
<%
-var dbfile = lpGet("sam database");
-
-res = ldb.search(dbfile, "(objectClass=user)");
+res = ldb.search(db, "(objectClass=user)");
multi_table(res, "dn");
%>
<h3>A search with bad arguments</h3>
<%
-res = ldb.search("foo");
+res = ldb.search("blah", "foo");
%>
all done