def test_hNetrUseAdd_hNetrUseDel_hNetrUseGetInfo_hNetrUseEnum(self): dce, rpctransport = self.connect() info1 = wkst.LPUSE_INFO_1() info1['ui1_local'] = 'Z:\x00' info1['ui1_remote'] = '\\\\127.0.0.1\\c$\x00' info1['ui1_password'] = NULL try: resp = wkst.hNetrUseAdd(dce, 1, info1) resp.dump() except Exception as e: if str(e).find('rpc_s_access_denied') >= 0: # This could happen in newer OSes pass # We're not testing this call with NDR64, it fails and I can't see the contents if self.ts == ('71710533-BEBA-4937-8319-B5DBEF9CCC36', '1.0'): return try: resp = wkst.hNetrUseEnum(dce, 2) resp.dump() except Exception as e: if str(e).find('STATUS_PIPE_DISCONNECTED') >= 0: # This could happen in newer OSes pass try: resp2 = wkst.hNetrUseGetInfo(dce, 'Z:', 3) resp2.dump() except Exception as e: if str(e).find('STATUS_PIPE_DISCONNECTED') >= 0: # This could happen in newer OSes pass try: resp = wkst.hNetrUseDel(dce, 'Z:') resp.dump() except Exception as e: if str(e).find('STATUS_PIPE_DISCONNECTED') >= 0: # This could happen in newer OSes pass
def test_hNetrUseAdd_hNetrUseDel_hNetrUseGetInfo_hNetrUseEnum(self): dce, rpctransport = self.connect() info1 = wkst.LPUSE_INFO_1() info1['ui1_local'] = 'Z:\x00' info1['ui1_remote'] = '\\\\127.0.0.1\\c$\x00' info1['ui1_password'] = NULL try: resp = wkst.hNetrUseAdd(dce, 1, info1) resp.dump() except Exception as e: if str(e).find('rpc_s_access_denied') >=0: # This could happen in newer OSes pass # We're not testing this call with NDR64, it fails and I can't see the contents if self.ts == ('71710533-BEBA-4937-8319-B5DBEF9CCC36', '1.0'): return try: resp = wkst.hNetrUseEnum(dce, 2) resp.dump() except Exception as e: if str(e).find('STATUS_PIPE_DISCONNECTED') >=0: # This could happen in newer OSes pass try: resp2 = wkst.hNetrUseGetInfo(dce, 'Z:', 3) resp2.dump() except Exception as e: if str(e).find('STATUS_PIPE_DISCONNECTED') >=0: # This could happen in newer OSes pass try: resp = wkst.hNetrUseDel(dce,'Z:') resp.dump() except Exception as e: if str(e).find('STATUS_PIPE_DISCONNECTED') >=0: # This could happen in newer OSes pass
def test_hNetrUseAdd_hNetrUseDel_hNetrUseGetInfo_hNetrUseEnum(self): dce, rpctransport = self.connect() info1 = wkst.LPUSE_INFO_1() info1['ui1_local'] = 'Z:\x00' info1['ui1_remote'] = '\\\\127.0.0.1\\c$\x00' info1['ui1_password'] = NULL resp = wkst.hNetrUseAdd(dce, 1, info1) #resp.dump() # We're not testing this call with NDR64, it fails and I can't see the contents if self.ts == ('71710533-BEBA-4937-8319-B5DBEF9CCC36', '1.0'): return resp = wkst.hNetrUseEnum(dce, 2) #resp.dump() resp2 = wkst.hNetrUseGetInfo(dce, 'Z:', 3) #resp2.dump() resp = wkst.hNetrUseDel(dce,'Z:')
def test_hNetrUseAdd_hNetrUseDel_hNetrUseGetInfo_hNetrUseEnum(self): dce, rpctransport = self.connect() info1 = wkst.LPUSE_INFO_1() info1['ui1_local'] = 'Z:\x00' info1['ui1_remote'] = '\\\\127.0.0.1\\c$\x00' info1['ui1_password'] = NULL resp = wkst.hNetrUseAdd(dce, 1, info1) #resp.dump() # We're not testing this call with NDR64, it fails and I can't see the contents if self.ts == ('71710533-BEBA-4937-8319-B5DBEF9CCC36', '1.0'): return resp = wkst.hNetrUseEnum(dce, 2) #resp.dump() resp2 = wkst.hNetrUseGetInfo(dce, 'Z:', 3) #resp2.dump() resp = wkst.hNetrUseDel(dce, 'Z:')
pass # We're not testing this call with NDR64, it fails and I can't see the contents if self.ts == ('71710533-BEBA-4937-8319-B5DBEF9CCC36', '1.0'): return try: resp = wkst.hNetrUseEnum(dce, 2) resp.dump() except Exception, e: if str(e).find('STATUS_PIPE_DISCONNECTED') >= 0: # This could happen in newer OSes pass try: resp2 = wkst.hNetrUseGetInfo(dce, 'Z:', 3) resp2.dump() except Exception, e: if str(e).find('STATUS_PIPE_DISCONNECTED') >= 0: # This could happen in newer OSes pass try: resp = wkst.hNetrUseDel(dce, 'Z:') resp.dump() except Exception, e: if str(e).find('STATUS_PIPE_DISCONNECTED') >= 0: # This could happen in newer OSes pass def test_NetrUseAdd_NetrUseDel_NetrUseGetInfo_NetrUseEnum(self):
pass # We're not testing this call with NDR64, it fails and I can't see the contents if self.ts == ('71710533-BEBA-4937-8319-B5DBEF9CCC36', '1.0'): return try: resp = wkst.hNetrUseEnum(dce, 2) resp.dump() except Exception, e: if str(e).find('STATUS_PIPE_DISCONNECTED') >=0: # This could happen in newer OSes pass try: resp2 = wkst.hNetrUseGetInfo(dce, 'Z:', 3) resp2.dump() except Exception, e: if str(e).find('STATUS_PIPE_DISCONNECTED') >=0: # This could happen in newer OSes pass try: resp = wkst.hNetrUseDel(dce,'Z:') resp.dump() except Exception, e: if str(e).find('STATUS_PIPE_DISCONNECTED') >=0: # This could happen in newer OSes pass def test_NetrUseAdd_NetrUseDel_NetrUseGetInfo_NetrUseEnum(self):