]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Use correct principal name type
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 11 Oct 2021 01:37:03 +0000 (14:37 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Oct 2021 18:59:31 +0000 (18:59 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14642

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/krb5/fast_tests.py

index 9bc8f44f7b5643d31fd9aee5600e405256dc0fb0..66cbf23978ad73f0411984f4342aca1668a1e9ad 100755 (executable)
@@ -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,
@@ -1185,7 +1186,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