1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

CVE-2020-25722 s4/dsdb/samldb: samldb_schema_add_handle_mapiid() checks all values

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14876

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2021-10-20 17:13:35 +13:00 committed by Jule Anger
parent 2a73827583
commit e4762f4c01

View File

@ -910,8 +910,15 @@ static int samldb_schema_add_handle_mapiid(struct samldb_ctx *ac)
schema = dsdb_get_schema(ldb, ac); schema = dsdb_get_schema(ldb, ac);
schema_dn = ldb_get_schema_basedn(ldb); schema_dn = ldb_get_schema_basedn(ldb);
el = dsdb_get_single_valued_attr(ac->msg, "mAPIID", ret = dsdb_get_expected_new_values(ac,
ac->req->operation); ac->msg,
"mAPIID",
&el,
ac->req->operation);
if (ret != LDB_SUCCESS) {
return ret;
}
if (el == NULL) { if (el == NULL) {
return LDB_SUCCESS; return LDB_SUCCESS;
} }