mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
tests/krb5: Fix PK-INIT test framework to allow expired password keys
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
46263c5c20
commit
7cc8f45519
@ -65,6 +65,7 @@ from samba.tests.krb5.rfc4120_constants import (
|
||||
FX_FAST_ARMOR_AP_REQUEST,
|
||||
KDC_ERR_CLIENT_REVOKED,
|
||||
KDC_ERR_GENERIC,
|
||||
KDC_ERR_KEY_EXPIRED,
|
||||
KDC_ERR_POLICY,
|
||||
KDC_ERR_PREAUTH_FAILED,
|
||||
KDC_ERR_SKEW,
|
||||
@ -5058,6 +5059,8 @@ class RawKerberosTest(TestCase):
|
||||
if ('1' in sent_pac_options
|
||||
and error_code not in (0, KDC_ERR_GENERIC)):
|
||||
expected_patypes += (PADATA_PAC_OPTIONS,)
|
||||
elif error_code == KDC_ERR_KEY_EXPIRED:
|
||||
expected_patypes += (PADATA_PK_AS_REP,)
|
||||
elif error_code != KDC_ERR_GENERIC:
|
||||
if expect_etype_info:
|
||||
expected_patypes += (PADATA_ETYPE_INFO,)
|
||||
|
@ -99,6 +99,7 @@ KDC_ERR_ETYPE_NOSUPP = 14
|
||||
KDC_ERR_SUMTYPE_NOSUPP = 15
|
||||
KDC_ERR_CLIENT_REVOKED = 18
|
||||
KDC_ERR_TGT_REVOKED = 20
|
||||
KDC_ERR_KEY_EXPIRED = 23
|
||||
KDC_ERR_PREAUTH_FAILED = 24
|
||||
KDC_ERR_PREAUTH_REQUIRED = 25
|
||||
KDC_ERR_SERVER_NOMATCH = 26
|
||||
|
Loading…
Reference in New Issue
Block a user