mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
s4:kcc_utils: Propagate 'samdb' into load_connection_transport() method
so it is actually able to make samdb.search-es Change-Id: I8491fd215710a53fbb41d607381f89afb5267464 Signed-off-by: Kamen Mazdrashki <kamenim@samba.org> Reviewed-By: Jelmer Vernooij <jelmer@samba.org>
This commit is contained in:
parent
8b68f9b931
commit
42fb23b8b2
@ -903,7 +903,7 @@ class NTDSConnection(object):
|
||||
|
||||
if "transportType" in msg:
|
||||
dsdn = dsdb_Dn(samdb, msg["tranportType"][0])
|
||||
self.load_connection_transport(str(dsdn.dn))
|
||||
self.load_connection_transport(samdb, str(dsdn.dn))
|
||||
|
||||
if "schedule" in msg:
|
||||
self.schedule = ndr_unpack(drsblobs.replSchedule, msg["schedule"][0])
|
||||
@ -916,7 +916,7 @@ class NTDSConnection(object):
|
||||
self.from_dnstr = str(dsdn.dn)
|
||||
assert self.from_dnstr is not None
|
||||
|
||||
def load_connection_transport(self, tdnstr):
|
||||
def load_connection_transport(self, samdb, tdnstr):
|
||||
"""Given a NTDSConnection object which enumerates a transport
|
||||
DN, load the transport information for the connection object
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user