diff options
author | Tim Potter <tpot@samba.org> | 2006-04-03 08:03:44 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:00:11 -0500 |
commit | 574c9fd6854b743b8727af5f53cc184552446e4d (patch) | |
tree | 5c4d13e744ab1891ab9c29504b0c04415be8efa5 /source4/scripting/swig/torture | |
parent | 6d98076c15e8726606da0a99714cd3382d82f9ac (diff) | |
download | samba-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-x | source4/scripting/swig/torture/torture_ldb.py | 6 |
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 |