1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-10 04:23:50 +03:00

r26522: Fix warnings on SamDB connect from Python, simplify the setup code for the various LDBs.

(This used to be commit 20c686f501)
This commit is contained in:
Jelmer Vernooij
2007-12-18 02:21:28 +01:00
committed by Stefan Metzmacher
parent 2fef113e82
commit 54a48d40a1
3 changed files with 43 additions and 33 deletions

View File

@@ -75,13 +75,14 @@ class Ldb(ldb.Ldb):
if lp is not None:
self.set_loadparm(self, lp)
if url:
self.connect(url)
def msg(l,text):
print text
self.set_debug(msg)
if url is not None:
self.connect(url)
set_credentials = misc.ldb_set_credentials
set_session_info = misc.ldb_set_session_info
set_loadparm = misc.ldb_set_loadparm