s4-dsdb: Split samdb_get_ntds_obj_by_guid() out of samdb_is_rodc()
commitbcb89bd81d4e51fbd06e205816e0b891dc0c1889
authorAndrew Bartlett <abartlet@samba.org>
Wed, 25 Jan 2023 02:17:44 +0000 (25 15:17 +1300)
committerJule Anger <janger@samba.org>
Fri, 3 Feb 2023 09:35:08 +0000 (3 09:35 +0000)
treee3812c83ac3190832c75403eea9ad04b7fd5a943
parenta78c2094ff503b775688dd46dc48ccf8f0934f09
s4-dsdb: Split samdb_get_ntds_obj_by_guid() out of samdb_is_rodc()

This will allow the logic here to be tighened up and shared
in the next few commits.

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 d5a2af3feae98057ba29de444d308d499d633941)
source4/dsdb/common/util.c