Exemple #1
0
 def test_reconnect(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     smb.listPath(self.share, '*')
     smb.logoff()
     smb.reconnect()
     smb.listPath(self.share, '*')
     smb.logoff()
Exemple #2
0
 def test_reconnect(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     smb.listPath(self.share, '*')
     smb.logoff()
     smb.reconnect()
     smb.listPath(self.share, '*')
     smb.logoff()
Exemple #3
0
 def test_aliasconnection(self):
     smb = SMBConnection('*SMBSERVER',
                         self.machine,
                         preferredDialect=self.dialects,
                         sess_port=self.sessPort)
     smb.login(self.username, self.password, self.domain)
     smb.listPath(self.share, '*')
     smb.logoff()
Exemple #4
0
 def test_aliasconnection(self):
     smb = SMBConnection('*SMBSERVER', self.machine, preferredDialect=self.dialects, sess_port=self.sessPort)
     smb.login(self.username, self.password, self.domain)
     smb.listPath(self.share, '*')
     smb.logoff()