From 8a9a4f2ff2d9f5944d1f41c3d3b0c0f362dfb863 Mon Sep 17 00:00:00 2001 From: Douglas Bagnall Date: Fri, 14 Nov 2025 11:30:10 +1300 Subject: [PATCH] pytests: rename KRB_ERR_TKT_NYV as KDC_ERR_TKT_NYV to be consistent with all the others. Signed-off-by: Douglas Bagnall Reviewed-by: Jennifer Sutton --- python/samba/tests/krb5/kdc_tgs_tests.py | 10 +++++----- python/samba/tests/krb5/rfc4120_constants.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/samba/tests/krb5/kdc_tgs_tests.py b/python/samba/tests/krb5/kdc_tgs_tests.py index 64397530caf..1f2d8707aab 100755 --- a/python/samba/tests/krb5/kdc_tgs_tests.py +++ b/python/samba/tests/krb5/kdc_tgs_tests.py @@ -53,7 +53,7 @@ from samba.tests.krb5.rfc4120_constants import ( KDC_ERR_SERVER_NOMATCH, KDC_ERR_TKT_EXPIRED, KDC_ERR_TGT_REVOKED, - KRB_ERR_TKT_NYV, + KDC_ERR_TKT_NYV, KDC_ERR_WRONG_REALM, NT_ENTERPRISE_PRINCIPAL, NT_PRINCIPAL, @@ -1117,22 +1117,22 @@ class KdcTgsTests(KdcTgsBaseTests): def test_tgs_req_invalid(self): creds = self._get_creds() tgt = self._get_tgt(creds, invalid=True) - self._run_tgs(tgt, creds, expected_error=KRB_ERR_TKT_NYV) + self._run_tgs(tgt, creds, expected_error=KDC_ERR_TKT_NYV) def test_s4u2self_req_invalid(self): creds = self._get_creds() tgt = self._get_tgt(creds, invalid=True) - self._s4u2self(tgt, creds, expected_error=KRB_ERR_TKT_NYV) + self._s4u2self(tgt, creds, expected_error=KDC_ERR_TKT_NYV) def test_user2user_req_invalid(self): creds = self._get_creds() tgt = self._get_tgt(creds, invalid=True) - self._user2user(tgt, creds, expected_error=KRB_ERR_TKT_NYV) + self._user2user(tgt, creds, expected_error=KDC_ERR_TKT_NYV) def test_fast_req_invalid(self): creds = self._get_creds() tgt = self._get_tgt(creds, invalid=True) - self._fast(tgt, creds, expected_error=KRB_ERR_TKT_NYV, + self._fast(tgt, creds, expected_error=KDC_ERR_TKT_NYV, expected_sname=self.get_krbtgt_sname()) def test_tgs_req_no_requester_sid(self): diff --git a/python/samba/tests/krb5/rfc4120_constants.py b/python/samba/tests/krb5/rfc4120_constants.py index 2e2de74b21b..c98f1c67b12 100644 --- a/python/samba/tests/krb5/rfc4120_constants.py +++ b/python/samba/tests/krb5/rfc4120_constants.py @@ -106,7 +106,7 @@ KDC_ERR_SERVER_NOMATCH = 26 KDC_ERR_PATH_NOT_ACCEPTED = 28 KDC_ERR_BAD_INTEGRITY = 31 KDC_ERR_TKT_EXPIRED = 32 -KRB_ERR_TKT_NYV = 33 +KDC_ERR_TKT_NYV = 33 KDC_ERR_NOT_US = 35 KDC_ERR_BADMATCH = 36 KDC_ERR_SKEW = 37 -- 2.47.3