From 42fb23b8b28601baaaca8c4f695a220ca1ead64b Mon Sep 17 00:00:00 2001 From: Kamen Mazdrashki Date: Mon, 21 Apr 2014 14:43:51 +0200 Subject: [PATCH] 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 Reviewed-By: Jelmer Vernooij --- python/samba/kcc_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/samba/kcc_utils.py b/python/samba/kcc_utils.py index 2692e4539d2..dd0e17a2f03 100644 --- a/python/samba/kcc_utils.py +++ b/python/samba/kcc_utils.py @@ -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