]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
tests/krb5: Remove unneeded machine account creation
authorJo Sutton <josutton@catalyst.net.nz>
Thu, 18 Jul 2024 01:53:09 +0000 (13:53 +1200)
committerDouglas Bagnall <dbagnall@samba.org>
Sun, 4 Aug 2024 00:32:39 +0000 (00:32 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/tests/krb5/ms_kile_client_principal_lookup_tests.py

index c3d3ca9e130c84b42bf142c1ae5123fd65bc2196..23a3fce55ed5e03c5e546ca4dab41da93465f843 100755 (executable)
@@ -402,7 +402,7 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
             This test uses the altsecid, so the AS-REQ should fail.
         """
 
-        # Create user and machine accounts for the test.
+        # Create a user account for the test.
         #
         samdb = self.get_samdb()
         user_name = "mskileusr"
@@ -412,10 +412,6 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
         alt_sec = "Kerberos:%s@%s" % (alt_name, realm)
         self.add_attribute(samdb, dn, "altSecurityIdentities", alt_sec)
 
-        mach_name = "mskilemac"
-        (mc, _) = self.create_account(samdb, mach_name,
-                                      account_type=self.AccountType.COMPUTER)
-
         # Do the initial AS-REQ, should get a pre-authentication required
         # response
         etype = (AES256_CTS_HMAC_SHA1_96, ARCFOUR_HMAC_MD5)
@@ -770,7 +766,7 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
             This test uses the altsecid, so the AS-REQ should fail.
         """
 
-        # Create user and machine accounts for the test.
+        # Create a user account for the test.
         #
         samdb = self.get_samdb()
         user_name = "mskileusr"
@@ -781,10 +777,6 @@ class MS_Kile_Client_Principal_Lookup_Tests(KDCBaseTest):
         self.add_attribute(samdb, dn, "altSecurityIdentities", alt_sec)
         ename = alt_name + "@" + realm
 
-        mach_name = "mskilemac"
-        (mc, _) = self.create_account(samdb, mach_name,
-                                      account_type=self.AccountType.COMPUTER)
-
         # Do the initial AS-REQ, should get a pre-authentication required
         # response
         etype = (AES256_CTS_HMAC_SHA1_96, ARCFOUR_HMAC_MD5)