mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
tests/krb5: Remove unneeded machine account creation
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
7b184bb317
commit
9542c419a0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user