s4-dsdb: Require that the NTDS object is an nTDSDSA objectclass
authorAndrew Bartlett <abartlet@samba.org>
Wed, 25 Jan 2023 02:18:47 +0000 (15:18 +1300)
committerJule Anger <janger@samba.org>
Wed, 1 Feb 2023 16:30:11 +0000 (16:30 +0000)
commitdc7497c3a4681c96fdf71e82db1b93e21214cc19
tree88f255e02936154f7b8be0e3a914154a768ba34c
parent29a89f07aa7b167adea921fd583b3b93ae0695f9
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>
(cherry picked from commit adb776149e5ac0eb346992775610627106e1a986)
source4/dsdb/common/util.c