Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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