mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
CVE-2020-25722 selftest: New objects of objectclass=computer are workstations by default now
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14753 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
parent
756f116b0e
commit
6c03fb656d
@ -3,7 +3,6 @@
|
||||
#
|
||||
# All these tests need to be fixed and the entries here removed
|
||||
|
||||
^samba4.sam.python\(.*\).__main__.SamTests.test_userAccountControl_computer_add_0_uac
|
||||
^samba4.sam.python\(.*\).__main__.SamTests.test_userAccountControl_computer_modify
|
||||
^samba4.sam.python\(.*\).__main__.SamTests.test_userAccountControl_user_modify
|
||||
^samba4.sam.python\(fl2008r2dc\).__main__.SamTests.test_users_groups\(fl2008r2dc\)
|
||||
|
@ -2206,7 +2206,7 @@ class SamTests(samba.tests.TestCase):
|
||||
attrs=["sAMAccountType", "userAccountControl"])
|
||||
self.assertTrue(len(res1) == 1)
|
||||
self.assertEqual(int(res1[0]["sAMAccountType"][0]),
|
||||
ATYPE_NORMAL_ACCOUNT)
|
||||
ATYPE_WORKSTATION_TRUST)
|
||||
self.assertTrue(int(res1[0]["userAccountControl"][0]) & UF_ACCOUNTDISABLE == 0)
|
||||
self.assertTrue(int(res1[0]["userAccountControl"][0]) & UF_PASSWD_NOTREQD == 0)
|
||||
delete_force(self.ldb, "cn=ldaptestcomputer,cn=computers," + self.base_dn)
|
||||
@ -2314,7 +2314,7 @@ class SamTests(samba.tests.TestCase):
|
||||
attrs=["sAMAccountType", "userAccountControl"])
|
||||
self.assertTrue(len(res1) == 1)
|
||||
self.assertEqual(int(res1[0]["sAMAccountType"][0]),
|
||||
ATYPE_NORMAL_ACCOUNT)
|
||||
ATYPE_WORKSTATION_TRUST)
|
||||
self.assertTrue(int(res1[0]["userAccountControl"][0]) & UF_ACCOUNTDISABLE != 0)
|
||||
|
||||
# As computer you can switch from a normal account to a workstation
|
||||
|
Loading…
Reference in New Issue
Block a user