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:
parent
2a73827583
commit
e4762f4c01
@ -910,8 +910,15 @@ static int samldb_schema_add_handle_mapiid(struct samldb_ctx *ac)
|
||||
schema = dsdb_get_schema(ldb, ac);
|
||||
schema_dn = ldb_get_schema_basedn(ldb);
|
||||
|
||||
el = dsdb_get_single_valued_attr(ac->msg, "mAPIID",
|
||||
ac->req->operation);
|
||||
ret = dsdb_get_expected_new_values(ac,
|
||||
ac->msg,
|
||||
"mAPIID",
|
||||
&el,
|
||||
ac->req->operation);
|
||||
if (ret != LDB_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (el == NULL) {
|
||||
return LDB_SUCCESS;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user