forked from samba-team/samba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
auth:creds: Add python bindings for (get|set)_smb_signing
Signed-off-by: Andreas Schneider <[email protected]> Reviewed-by: Stefan Metzmacher <[email protected]>
- Loading branch information
1 parent
58e0abc
commit 098774b
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -448,3 +448,9 @@ def test_parse_username_with_realm_pw(self): | |
self.assertEqual(creds.get_principal(), "[email protected]") | ||
self.assertEqual(creds.is_anonymous(), False) | ||
self.assertEqual(creds.authentication_requested(), True) | ||
|
||
def test_smb_signing(self): | ||
creds = credentials.Credentials() | ||
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) |