diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-12-06 14:54:31 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2021-12-07 08:32:42 +0000 |
commit | 221569a14c8ecd529eae5c8c021cffe65324afec (patch) | |
tree | 00524e9a00227a640ad2278261c76a529d549b7d /python | |
parent | 9844a331864ff44645d15e946707fe5278f97ae6 (diff) | |
download | samba-221569a14c8ecd529eae5c8c021cffe65324afec.tar.gz |
tests/krb5: Allow PADATA-ENCRYPTED-CHALLENGE to be missing for skew errors
A skew error means the client just tried using PADATA-ENC-TIMESTAMP or
PADATA-ENCRYPTED-CHALLENGE, so it might not be necessary to announce
them in that case.
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Dec 7 08:32:42 UTC 2021 on sn-devel-184
Diffstat (limited to 'python')
-rw-r--r-- | python/samba/tests/krb5/raw_testcase.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/tests/krb5/raw_testcase.py b/python/samba/tests/krb5/raw_testcase.py index 1c98dd5adab..cc004f04842 100644 --- a/python/samba/tests/krb5/raw_testcase.py +++ b/python/samba/tests/krb5/raw_testcase.py @@ -48,6 +48,7 @@ from samba.tests.krb5.rfc4120_constants import ( FX_FAST_ARMOR_AP_REQUEST, KDC_ERR_GENERIC, KDC_ERR_PREAUTH_FAILED, + KDC_ERR_SKEW, KDC_ERR_UNKNOWN_CRITICAL_FAST_OPTIONS, KERB_ERR_TYPE_EXTENDED, KRB_AP_REQ, @@ -2940,7 +2941,7 @@ class RawKerberosTest(TestCaseInTempDir): if len(expect_etype_info2) != 0: expected_patypes += (PADATA_ETYPE_INFO2,) - if error_code != KDC_ERR_PREAUTH_FAILED: + if error_code not in (KDC_ERR_PREAUTH_FAILED, KDC_ERR_SKEW): if sent_fast: expected_patypes += (PADATA_ENCRYPTED_CHALLENGE,) else: |