r15346: Doc.
[samba.git] / source / scripting / swig / torture / torture_ldb.py
1 #!/usr/bin/python
2
3 import Ldb
4
5 def fail(msg):
6     print 'FAILED:', msg
7     sys.exit(1)
8
9 l = Ldb.Ldb()
10
11 l.connect('tdb:///tmp/foo.ldb')
12 result = l.search('(dn=*)')
13
14 print result