mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
selftest: Add a test for creds.{get,set}_secure_channel_type()
Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
parent
656ec98e5b
commit
2a4261c052
@ -26,6 +26,7 @@ import samba.tests
|
||||
import os
|
||||
import binascii
|
||||
from samba.compat import PY3
|
||||
from samba.dcerpc import misc
|
||||
|
||||
class CredentialsTests(samba.tests.TestCaseInTempDir):
|
||||
|
||||
@ -115,6 +116,13 @@ class CredentialsTests(samba.tests.TestCaseInTempDir):
|
||||
self.creds.set_workstation("myworksta")
|
||||
self.assertEqual("myworksta", self.creds.get_workstation())
|
||||
|
||||
def test_secure_channel_type(self):
|
||||
self.assertEqual(misc.SEC_CHAN_NULL,
|
||||
self.creds.get_secure_channel_type())
|
||||
self.creds.set_secure_channel_type(misc.SEC_CHAN_BDC)
|
||||
self.assertEqual(misc.SEC_CHAN_BDC,
|
||||
self.creds.get_secure_channel_type())
|
||||
|
||||
def test_get_nt_hash(self):
|
||||
password="geheim"
|
||||
hex_nthash="c2ae1fe6e648846352453e816f2aeb93"
|
||||
|
Loading…
x
Reference in New Issue
Block a user