Esempio n. 1
0
 def test_hNetrRemoveAlternateComputerName(self):
     dce, rpc_transport = self.connect()
     try:
         resp2 = wkst.hNetrRemoveAlternateComputerName(dce, 'FREEFLY\x00', NULL, NULL)
         resp2.dump()
     except Exception as e:
         if str(e).find('ERROR_NOT_SUPPORTED') < 0 and str(e).find('ERROR_INVALID_PASSWORD') < 0:
             raise
Esempio n. 2
0
    def test_hNetrRemoveAlternateComputerName(self):
        dce, rpctransport = self.connect()

        try:
            resp2 = wkst.hNetrRemoveAlternateComputerName(dce,'FREEFLY\x00', NULL, NULL )
            resp2.dump()
        except Exception, e:
            if str(e).find('ERROR_NOT_SUPPORTED') < 0 and str(e).find('ERROR_INVALID_PASSWORD') < 0:
                raise