mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
CVE-2022-32744 tests/krb5: Correctly calculate salt for pre-existing accounts
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15074 Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
3034c1933c
commit
7c9faf1aac
@ -1065,6 +1065,7 @@ class KDCBaseTest(RawKerberosTest):
|
||||
|
||||
kvno = int(res[0]['msDS-KeyVersionNumber'][0])
|
||||
creds.set_kvno(kvno)
|
||||
creds.set_workstation(username[:-1])
|
||||
creds.set_dn(dn)
|
||||
|
||||
keys = self.get_keys(samdb, dn)
|
||||
|
@ -865,6 +865,7 @@ class RawKerberosTest(TestCaseInTempDir):
|
||||
allow_missing_password=allow_missing_password,
|
||||
allow_missing_keys=allow_missing_keys)
|
||||
c.set_gensec_features(c.get_gensec_features() | FEATURE_SEAL)
|
||||
c.set_workstation('')
|
||||
return c
|
||||
|
||||
def get_rodc_krbtgt_creds(self,
|
||||
|
Loading…
x
Reference in New Issue
Block a user