git.samba.org
/
samba.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
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