Esempio n. 1
0
 def test_getData(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     smb.getDialect()
     smb.getServerName()
     smb.getRemoteHost()
     smb.getServerDomain()
     smb.getServerOS()
     smb.doesSupportNTLMv2()
     smb.isLoginRequired()
     smb.logoff()
Esempio n. 2
0
 def test_getData(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     smb.getDialect()
     smb.getServerName()
     smb.getRemoteHost()
     smb.getServerDomain()
     smb.getServerOS()
     smb.doesSupportNTLMv2()
     smb.isLoginRequired()
     smb.logoff()
Esempio n. 3
0
 def test_getServerDomain(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     serverDomain = smb.getServerDomain()
     self.assertTrue(
         serverDomain.upper() == self.domain.upper().split('.')[0])
     smb.logoff()
Esempio n. 4
0
 def test_getServerDomain(self):
     smb = self.create_connection()
     smb.login(self.username, self.password, self.domain)
     serverDomain = smb.getServerDomain()
     self.assertTrue( serverDomain.upper() == self.domain.upper().split('.')[0])
     smb.logoff()