mirror of
https://github.com/samba-team/samba.git
synced 2025-01-27 14:04:05 +03:00
CVE-2022-37966 python:tests/krb5: ignore empty supplementalCredentials attributes
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> (cherry picked from commit f434a30ee7c40aac4a223fcabac9ddd160a155a5)
This commit is contained in:
parent
b20acd876c
commit
aeb7c646bb
@ -566,6 +566,8 @@ class KDCBaseTest(RawKerberosTest):
|
||||
for attr in attributes:
|
||||
if attr.attid == drsuapi.DRSUAPI_ATTID_supplementalCredentials:
|
||||
net_ctx.replicate_decrypt(bind, attr, rid)
|
||||
if attr.value_ctr.num_values == 0:
|
||||
continue
|
||||
attr_val = attr.value_ctr.values[0].blob
|
||||
|
||||
spl = ndr_unpack(drsblobs.supplementalCredentialsBlob,
|
||||
|
Loading…
x
Reference in New Issue
Block a user