s4-dsdb: Make dsdb_find_nc_root() first try and use DSDB_CONTROL_CURRENT_PARTITION_OID
commitd0444be4b74bdad6a731bc5fcf86da6142b03539
authorAndrew Bartlett <abartlet@samba.org>
Mon, 5 Dec 2022 09:21:29 +0000 (5 22:21 +1300)
committerStefan Metzmacher <metze@samba.org>
Tue, 31 Jan 2023 12:50:33 +0000 (31 12:50 +0000)
tree251ea8c102609f0402657891a988e33cd75857ed
parent7032b86cd5c1456318558ed95f8890e353117ced
s4-dsdb: Make dsdb_find_nc_root() first try and use DSDB_CONTROL_CURRENT_PARTITION_OID

This allows lookup of a DN with a GUID only or GUID and string,
possibly not yet in the database, yet still getting the correct result.

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>
selftest/knownfail.d/dsdb_get_nc_root [deleted file]
source4/dsdb/common/util.c