summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2021-10-11 14:37:03 +1300
committerStefan Metzmacher <metze@samba.org>2021-10-26 12:00:27 +0000
commit8537439913a93c2471abb7b1591f31493ee12c6f (patch)
tree156e723e1d119c00150b235c5f9a08c924c0566e /python
parentcb0b486f483ff5554fc1f7adf125698750854ce7 (diff)
downloadsamba-8537439913a93c2471abb7b1591f31493ee12c6f.tar.gz
tests/krb5: Use correct principal name type
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14642 BUG: https://bugzilla.samba.org/show_bug.cgi?id=14881 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit 687c8f94c68af9f1e44771dfd7219eeb41382bba)
Diffstat (limited to 'python')
-rwxr-xr-xpython/samba/tests/krb5/fast_tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/tests/krb5/fast_tests.py b/python/samba/tests/krb5/fast_tests.py
index 28fe0686335..1cdfd5e20c4 100755
--- a/python/samba/tests/krb5/fast_tests.py
+++ b/python/samba/tests/krb5/fast_tests.py
@@ -43,6 +43,7 @@ from samba.tests.krb5.rfc4120_constants import (
KRB_AS_REP,
KRB_TGS_REP,
NT_PRINCIPAL,
+ NT_SRV_HST,
NT_SRV_INST,
PADATA_FX_COOKIE,
PADATA_FX_FAST,
@@ -1136,7 +1137,7 @@ class FAST_Tests(KDCBaseTest):
target_realm = target_creds.get_realm()
target_service = 'host'
target_sname = self.PrincipalName_create(
- name_type=NT_SRV_INST, names=[target_service, target_username])
+ name_type=NT_SRV_HST, names=[target_service, target_username])
target_decryption_key = self.TicketDecryptionKey_from_creds(
target_creds)
target_etypes = target_creds.tgs_supported_enctypes