s4-drs: Make drs_ObjectIdentifier_to_dn() safer and able to cope with DummyDN values
commit64df0963f8c8f7e6f203780c5d2dbb61b749a439
authorAndrew Bartlett <abartlet@samba.org>
Tue, 31 Jan 2023 00:29:05 +0000 (31 13:29 +1300)
committerJule Anger <janger@samba.org>
Wed, 1 Feb 2023 16:30:11 +0000 (1 16:30 +0000)
tree9dcdd81a4f7e130a570dd6b5c91d59d9579136b1
parent84a952b01eeff32b70d71de48751d7f910bfea64
s4-drs: Make drs_ObjectIdentifier_to_dn() safer and able to cope with DummyDN values

We want to totally ignore the string DN if there is a GUID,
as clients like "Microsoft Azure AD connect cloud sync" will
set a literal "DummyDN" string.

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 73f3ece8b2b44ac4b3323a08fb969f29bf2b0380)
selftest/knownfail.d/getncchanges
source4/dsdb/common/dsdb_dn.c
source4/rpc_server/drsuapi/getncchanges.c
source4/rpc_server/drsuapi/updaterefs.c