summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/torture
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2006-04-03 08:03:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:00:11 -0500
commit574c9fd6854b743b8727af5f53cc184552446e4d (patch)
tree5c4d13e744ab1891ab9c29504b0c04415be8efa5 /source4/scripting/swig/torture
parent6d98076c15e8726606da0a99714cd3382d82f9ac (diff)
downloadsamba-574c9fd6854b743b8727af5f53cc184552446e4d.tar.gz
samba-574c9fd6854b743b8727af5f53cc184552446e4d.tar.bz2
samba-574c9fd6854b743b8727af5f53cc184552446e4d.zip
r14878: Write swig wrappers for ldb_init() and ldb_connect().
Start wrapper for ldb_search(). Currently it returns a list of swig ldb_message objects. More unpacking of results required. (This used to be commit 704787978aa705edba233249e8eab236ffe303a4)
Diffstat (limited to 'source4/scripting/swig/torture')
-rwxr-xr-xsource4/scripting/swig/torture/torture_ldb.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/scripting/swig/torture/torture_ldb.py b/source4/scripting/swig/torture/torture_ldb.py
index 76ff43bbea..c9a3ded6da 100755
--- a/source4/scripting/swig/torture/torture_ldb.py
+++ b/source4/scripting/swig/torture/torture_ldb.py
@@ -6,3 +6,9 @@ def fail(msg):
print 'FAILED:', msg
sys.exit(1)
+l = Ldb.Ldb()
+
+l.connect('tdb:///tmp/foo.ldb')
+result = l.search('(dn=*)')
+
+print result