1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/testprogs/blackbox
Stefan Metzmacher 5357f591ac blackbox/dbcheck-links.sh: reproduce lost deleted object problem
When a parent object is removed during the tombstone garbage collection
before a child object and samba-tool dbcheck runs at the same time, the
following can happen:

- If the object child had DISALLOW_MOVE_ON_DELETE in systemFlags,
  samba-tool dbcheck moves the object under the LostAndFound[Config]
  object (as an originating update!)
- The lastKnownParent attribute is removed (as an originating update!)

These originating updates cause the object to have an extended time
as tombstone. And these changes are replicated to other DCs,
which very likely already removed the object completely!

This means the destination DC of replication has no chance to handle
the object it gets from the source DC with just 2 attributes (name, lastKnownParent).

The destination logs something like:

  No objectClass found in replPropertyMetaData

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2019-03-14 02:12:19 +00:00
..
wintest
bogus.sh testprogs: Fix usage printout of bogus blackbox test 2017-04-29 23:31:10 +02:00
common_test_fns.inc testprogs: Return the correct error status code 2018-03-03 00:01:23 +01:00
common-links.sh selftest: Add more corruption cases for runtime and dbcheck 2017-11-24 15:50:16 +01:00
dbcheck-links.sh blackbox/dbcheck-links.sh: reproduce lost deleted object problem 2019-03-14 02:12:19 +00:00
dbcheck-oldrelease.sh blackbox/*.sh: pass -u to 'diff' 2019-03-14 02:12:19 +00:00
dbcheck.sh blackbox/dbcheck.sh: fix dbcheck_fix_one_way_links cleanup 2019-02-11 11:41:21 +01:00
demote-saveddb.sh selftest: Confirm a demote of a real network works 2015-10-26 08:17:47 +01:00
dfree.sh selftest: more dfree command and smbclient disk usage tests 2016-01-06 03:58:59 +01:00
dom_parse.sh Add a blackbox tests for id & getent to test domain@realm type credentials 2016-10-03 19:49:19 +02:00
functionalprep.sh netcmd/ldapcmp: pass --skip-missing-dn to LDAPBase 2018-11-21 07:46:19 +01:00
join_ldapcmp.sh tests: Add a sub-set of tests to show the restored DC is sound 2018-07-03 10:39:14 +02:00
ldapcmp_restoredc.sh netcmd/ldapcmp: pass --skip-missing-dn to LDAPBase 2018-11-21 07:46:19 +01:00
nsstest.sh s4-selftest re-enable nsstest on libnss_winbind.so 2011-12-07 03:09:08 +01:00
renamedc.sh testprogs/blackbox: Use PYTHON env variable for calling python scripts 2018-10-23 05:50:25 +02:00
runtime-links.sh selftest: Add more corruption cases for runtime and dbcheck 2017-11-24 15:50:16 +01:00
schemaupgrade.sh netcmd/ldapcmp: pass --skip-missing-dn to LDAPBase 2018-11-21 07:46:19 +01:00
subunit.sh testprogs/blackbox: add testit[_expect_failure]_grep() to subunit.sh 2018-09-05 00:48:17 +02:00
test_chgdcpass.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_client_etypes.sh testprogs: Use own credential cache for test_client_etypes.sh 2016-09-25 09:05:27 +02:00
test_export_keytab_heimdal.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_export_keytab_mit.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_kinit_heimdal.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_kinit_mit.sh CVE-2018-16853: Add a test to verify s4u2self doesn't crash 2018-11-28 08:22:24 +01:00
test_kinit_trusts_heimdal.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_kinit_trusts_mit.sh testprogs: Add a kinit trust test for MIT KDC 2017-04-29 23:31:10 +02:00
test_kpasswd_heimdal.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_kpasswd_mit.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_ktpass.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_ldb_simple.sh CVE-2016-2112: s4:selftest: run some ldap test against ad_dc_ntvfs, fl2008r2dc and fl2003dc 2016-04-12 19:25:25 +02:00
test_ldb.sh lib/tls: Change default supported TLS versions. 2015-07-20 03:08:26 +02:00
test_net_ads_dns.sh testprogs/blackbox: don't use hardcoded values in test_net_ads_dns.sh 2017-06-13 22:46:14 +02:00
test_net_ads.sh s3:libads: Add net ads keep-account test 2018-07-30 10:22:59 +02:00
test_net_rpc_user.sh testprogs: Add 'net rpc user' test against AD DC 2017-05-11 20:30:12 +02:00
test_password_settings.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_pdbtest.sh selftest: pass configfile to pdbedit 2018-09-07 17:26:15 +02:00
test_pkinit_heimdal.sh CVE-2018-16841 selftest: Check for mismatching principal in certficate compared with principal in AS-REQ 2018-11-28 08:22:24 +01:00
test_pkinit_pac_heimdal.sh testprogs/blackbox: add test_pkinit_pac_heimdal.sh 2016-07-22 23:34:21 +02:00
test_primary_group.sh dsdb: Add comments explaining the limitations of our current backlink behaviour 2018-10-30 10:32:51 +01:00
test_samba_upgradedns.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_samba-tool_ntacl.sh testprogs/blackbox: make sure samba-tool is called with correct python 2018-12-10 10:38:20 +01:00
test_trust_ntlm.sh test_trust_ntlm.sh: add lookup name tests 2018-02-21 14:19:19 +01:00
test_trust_token.sh testprogs/blackbox: add test_trust_token.sh 2018-03-19 20:30:51 +01:00
test_trust_user_account.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_trust_utils.sh testprogs/blackbox: PY3 bulk change for python scripts use correct python 2018-11-14 05:07:16 +01:00
test_wintest.sh Remove some bashisms from the test scripts 2018-02-19 07:36:23 +01:00
tfork.sh lib/util: add a test for samba_runcmd_send() 2017-04-20 16:53:16 +02:00
tombstones-expunge.sh blackbox/*.sh: pass -u to 'diff' 2019-03-14 02:12:19 +00:00
upgradeprovision-oldrelease.sh testprogs/blackbox: Use PYTHON env variable for calling python scripts 2018-10-23 05:50:25 +02:00