mirror of
https://github.com/samba-team/samba.git
synced 2025-07-28 11:42:03 +03:00
auth:creds: Add python bindings for (get|set)_smb_ipc_signing
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
committed by
Andreas Schneider
parent
71d65278e1
commit
ef12caea07
@ -454,3 +454,9 @@ class CredentialsTests(samba.tests.TestCaseInTempDir):
|
||||
self.assertEqual(creds.get_smb_signing(), credentials.SMB_SIGNING_DEFAULT)
|
||||
creds.set_smb_signing(credentials.SMB_SIGNING_REQUIRED)
|
||||
self.assertEqual(creds.get_smb_signing(), credentials.SMB_SIGNING_REQUIRED)
|
||||
|
||||
def test_smb_ipc_signing(self):
|
||||
creds = credentials.Credentials()
|
||||
self.assertEqual(creds.get_smb_ipc_signing(), credentials.SMB_SIGNING_REQUIRED)
|
||||
creds.set_smb_ipc_signing(credentials.SMB_SIGNING_OFF)
|
||||
self.assertEqual(creds.get_smb_ipc_signing(), credentials.SMB_SIGNING_OFF)
|
||||
|
Reference in New Issue
Block a user