def get_target(self): res = KerberosTarget() res.ip = self.dc_ip res.port = self.port res.protocol = KerberosSocketType.TCP res.proxy = self.proxy res.timeout = self.timeout return res
def get_kerberos_target(self, proxy=None, timeout=1): kt = KerberosTarget() kt.ip = self.hostname kt.port = 88 kt.protocol = KerberosSocketType.TCP kt.proxy = proxy kt.timeout = timeout return kt
def get_target(self): if self.target is not None: if self.target.proxy is None and self.proxy is not None: self.target.proxy = self.proxy return copy.deepcopy(self.target) res = KerberosTarget() res.ip = self.dc_ip res.port = self.port res.protocol = KerberosSocketType.TCP res.proxy = self.proxy res.timeout = self.timeout return res