summaryrefslogtreecommitdiff
path: root/python/samba/tests/dcerpc/raw_protocol.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/samba/tests/dcerpc/raw_protocol.py')
-rwxr-xr-xpython/samba/tests/dcerpc/raw_protocol.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/python/samba/tests/dcerpc/raw_protocol.py b/python/samba/tests/dcerpc/raw_protocol.py
index a1ca66d0458..f287d71c8c6 100755
--- a/python/samba/tests/dcerpc/raw_protocol.py
+++ b/python/samba/tests/dcerpc/raw_protocol.py
@@ -2762,7 +2762,7 @@ class TestDCERPC_BIND(RawDCERPCTest):
return self._test_spnego_connect_upgrade_request(
dcerpc.DCERPC_AUTH_LEVEL_INTEGRITY)
- def test_spnego_integrity_request(self):
+ def _test_spnego_connect_downgrade_request(self, initial_auth_level):
ndr32 = base.transfer_syntax_ndr()
tsf1_list = [ndr32]
@@ -2778,7 +2778,7 @@ class TestDCERPC_BIND(RawDCERPCTest):
g.set_credentials(c)
g.want_feature(gensec.FEATURE_DCE_STYLE)
auth_type = dcerpc.DCERPC_AUTH_TYPE_SPNEGO
- auth_level = dcerpc.DCERPC_AUTH_LEVEL_INTEGRITY
+ auth_level = initial_auth_level
auth_context_id = 2
g.start_mech_by_authtype(auth_type, auth_level)
from_server = b""
@@ -2875,6 +2875,10 @@ class TestDCERPC_BIND(RawDCERPCTest):
self.assertIsNone(rep)
self.assertNotConnected()
+ def test_spnego_integrity_downgrade_connect(self):
+ return self._test_spnego_connect_upgrade_request(
+ dcerpc.DCERPC_AUTH_LEVEL_INTEGRITY)
+
def test_spnego_unfinished_request(self):
ndr32 = base.transfer_syntax_ndr()