]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python:tests/krb5: create_account_opts() can't handle self.AccountType.TRUST
authorStefan Metzmacher <metze@samba.org>
Mon, 10 Mar 2025 18:06:39 +0000 (19:06 +0100)
committerRalph Boehme <slow@samba.org>
Thu, 3 Apr 2025 09:36:31 +0000 (09:36 +0000)
create_trust() is used for that...

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
python/samba/tests/krb5/kdc_base_test.py

index 20a004579a4bef6882d6c5d8dc17272f0e4f6ac7..d7515e7293f911dcf4c1941c1e95a6394717902d 100644 (file)
@@ -2592,6 +2592,7 @@ class KDCBaseTest(TestCaseInTempDir, RawKerberosTest):
                             logon_hours,
                             smartcard_required,
                             enabled):
+        self.assertNotEqual(account_type, self.AccountType.TRUST)
         if account_type is self.AccountType.USER:
             self.assertIsNone(delegation_to_spn)
             self.assertIsNone(delegation_from_dn)