1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/python/samba
Tim Beale 2860bd0777 netcmd: Use dbcheck to fix DB problems introduced by restore itself
As part of the restore process, we remove all the old DCs from the DB.
However, this introduces some dbcheck errors - there are some DN
attributes and one-way links that reference the deleted objects that
need fixing up. To resolve this, we can run dbcheck as part of the
restore process. This problem affects both renames and plain restores.

The dbcheck.sh test didn't spot this problem because it fixes this type
of DB error first, before it checks the DB.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2018-07-05 04:01:26 +02:00
..
emulate python/samba/emulate: py2/py3 .next usage, replace with next() fn 2018-06-20 00:18:22 +02:00
kcc python/kcc/graph_utils: short-cut edge failure test without edges 2018-06-10 19:02:19 +02:00
netcmd netcmd: Use dbcheck to fix DB problems introduced by restore itself 2018-07-05 04:01:26 +02:00
provision netcmd: Extend 'backup restore' command to handle renamed domains 2018-07-05 04:01:25 +02:00
samba3 Fix spelling s/retrive/retrieve/ 2018-05-12 02:09:27 +02:00
subunit python: bulk replace file to open for py3 2018-04-13 07:27:12 +02:00
tests tests: Add new tests for backup-rename command 2018-07-05 04:01:26 +02:00
web_server samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
__init__.py python: export fault_setup() to python bindings 2018-06-12 08:13:21 +02:00
colour.py python/colour: add colourizing and switch functions 2018-05-31 01:57:17 +02:00
common.py selftest: enable py3 for samba.tests.common 2018-04-05 08:59:10 +02:00
compat.py python/samba: Add binary_type for p2/p3 testing. 2018-04-30 15:43:19 +02:00
dbchecker.py dbchecker: Fixing up incorrect DNs wasn't working 2018-07-03 05:24:13 +02:00
descriptor.py python: Bulk conversion callers of ldb.Dn second param 2018-04-30 15:43:19 +02:00
dnsserver.py python: Move dnsserver helper functions into samba.dnsserver 2017-02-23 11:36:21 +01:00
domain_update.py python/samba: py2/py3 compatability always decode result of b64encode 2018-05-12 21:38:17 +02:00
drs_utils.py drs_utils: Always set the GET_TGT flag for clone renames 2018-07-05 04:01:25 +02:00
forest_update.py python: fix the build with python3. 2018-01-16 16:38:23 +01:00
getopt.py python: call fault_setup() if samba.getopt is used 2018-06-12 11:04:55 +02:00
gp_sec_ext.py gpo: Create a gp_sec_ext module 2018-04-12 08:13:34 +02:00
gpclass.py gpo: python chardet is not a dep of samba 2018-04-12 11:27:03 +02:00
graph.py python/samba: enclose map.values with list (py2/py3) 2018-06-20 00:18:23 +02:00
hostconfig.py selftest: enable py3 for samba.tests.hostconfig 2018-04-05 08:59:10 +02:00
idmap.py python/samba: Bulk replace of '.next()' method with function 'next()' 2018-05-12 21:38:16 +02:00
join.py join: Add more framework for renaming a domain 2018-07-05 04:01:25 +02:00
mdb_util.py python: Add wrapper of mdb_copy that we can call from python 2018-04-06 02:08:45 +02:00
ms_display_specifiers.py samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
ms_forest_updates_markdown.py samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
ms_schema_markdown.py samba python libs: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
ms_schema.py python/samba/netcmd/schema.py: add schema query and management. 2018-05-29 05:34:08 +02:00
ndr.py python:ndr: add ndr_{pack,unpack,print}_{in,out} helper functions 2016-10-26 11:20:19 +02:00
ntacls.py ntacls: add functions to backup and restore ntacls 2018-06-28 09:25:09 +02:00
remove_dc.py netcmd: Extend 'backup restore' command to handle renamed domains 2018-07-05 04:01:25 +02:00
samdb.py python/samba/netcmd/schema.py: samdb schema update now 2018-05-29 08:30:52 +02:00
schema.py python/samba: py2/py3 compatability always decode result of b64encode 2018-05-12 21:38:17 +02:00
sd_utils.py python: Allow sd_utils to take a Dn object, not just a string DN 2017-06-10 21:48:20 +02:00
sites.py samba python libs: convert 'except X, (tuple)' to 'except X as e' 2018-02-28 23:01:40 +01:00
subnets.py samba python libs: convert 'except X, (tuple)' to 'except X as e' 2018-02-28 23:01:40 +01:00
tdb_util.py
upgrade.py samba-tool domain classicupgrade: Do not mix python-samdb transactions and passdb modifications 2018-04-06 02:08:44 +02:00
upgradehelpers.py python/samba/tests: py2/py3 port has_keys usage 2018-06-20 00:18:21 +02:00
xattr.py