def test_hNetrGetAnyDCName(self): dce, rpctransport = self.connect() try: nrpc.hNetrGetAnyDCName(dce, NULL, self.domain) except DCERPCException as e: if str(e).find('ERROR_NO_SUCH_DOMAIN') < 0: raise
def test_hNetrGetAnyDCName(self): dce, rpctransport = self.connect() try: resp = nrpc.hNetrGetAnyDCName(dce, '\x00' * 20, self.domain + '\x00') resp.dump() except Exception as e: if str(e).find('ERROR_NO_SUCH_DOMAIN') < 0: raise
def test_hNetrGetAnyDCName(self): dce, rpctransport = self.connect() try: resp = nrpc.hNetrGetAnyDCName(dce, "\x00" * 20, self.domain + "\x00") resp.dump() except Exception, e: if str(e).find("ERROR_NO_SUCH_DOMAIN") < 0: raise