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:
committed by
Stefan Metzmacher
parent
2fef113e82
commit
54a48d40a1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user