mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
s4-dsdb: Require that the NTDS object is an nTDSDSA objectclass
This should avoid a user being able to specify the GUID of a different type of object. BUG: https://bugzilla.samba.org/show_bug.cgi?id=10635 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
d5a2af3fea
commit
adb776149e
@ -3574,7 +3574,7 @@ int samdb_get_ntds_obj_by_guid(TALLOC_CTX *mem_ctx,
|
||||
LDB_SCOPE_SUBTREE,
|
||||
attrs,
|
||||
DSDB_SEARCH_ONE_ONLY,
|
||||
"objectGUID=%s",
|
||||
"(&(objectGUID=%s)(objectClass=nTDSDSA))",
|
||||
guid_str);
|
||||
if (ret != LDB_SUCCESS) {
|
||||
return ret;
|
||||
|
Loading…
x
Reference in New Issue
Block a user