python-drs: Add client-side debug and fallback for GET_ANC
authorAndrew Bartlett <abartlet@samba.org>
Thu, 15 Sep 2022 05:10:24 +0000 (17:10 +1200)
committerJule Anger <janger@samba.org>
Fri, 7 Oct 2022 08:48:17 +0000 (08:48 +0000)
commitbac9532f0a98ad54d4ad00f94bcbf13c797f823d
tree3b8571418540c5f639ac5b5b84f81e665693e38b
parent79283760616bdd1ae811f8c407d601dfc48f019e
python-drs: Add client-side debug and fallback for GET_ANC

Samba 4.5 and earlier will fail to do GET_ANC correctly and will not
replicate non-critical parents of objects with isCriticalSystemObject=TRUE
when DRSUAPI_DRS_CRITICAL_ONLY is set.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15189
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15189

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
(cherry picked from commit bff2bc9c7d69ec2fbe9339c2353a0a846182f1ea)
python/samba/drs_utils.py
python/samba/join.py
selftest/knownfail.d/samba-4.5-emulation