]> git.ipfire.org Git - thirdparty/samba.git/commit
selftest/drs: Demonstrate ERROR(ldb): uncaught exception - Deleted target CN=NTDS...
authorAndrew Bartlett <abartlet@samba.org>
Thu, 9 Mar 2023 04:02:35 +0000 (17:02 +1300)
committerJule Anger <janger@samba.org>
Thu, 30 Mar 2023 15:10:10 +0000 (15:10 +0000)
commiteaff4ef61624276b16dc0dcb11868e2778d2e46f
tree0177366e5a524c2615e0977246e89d03a5ac04e5
parent3ecdec683b60cf100b1c031841b709c91191c8f2
selftest/drs: Demonstrate ERROR(ldb): uncaught exception - Deleted target CN=NTDS Settings... in join

"samba-tool domain join" uses the replication API in a strange way, perhaps no longer
required, except that we often still have folks upgrading from very old Samba versions.

By deferring the writing out to the DB of link replication to the very end, we have a
better chance that all the objects required are present, however the situation may
have changed during the cycle, and a link could still be sent, pointing to a deleted
object.

We currently fail in this situation.

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

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
(cherry picked from commit 2d41bcce83a976b85636c92d6fc38c63fdde5431)
selftest/knownfail.d/replicate_against_deleted [new file with mode: 0644]
source4/dsdb/pydsdb.c
source4/dsdb/samdb/samdb.h
source4/torture/drs/python/ridalloc_exop.py