1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
samba-mirror/python/samba/netcmd
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
..
__init__.py sambatool: heuristics to decided whether colour is wanted 2018-05-31 04:34:52 +02:00
common.py python: fix unicode escape in doc string 2018-04-13 07:27:12 +02:00
computer.py samba-tool computer: fix wrong computer container in help message 2018-05-14 18:27:17 +02:00
dbcheck.py samba-tool: be consistent in accepting -q for --quiet 2018-05-31 01:57:17 +02:00
delegation.py samba-tool: convert 'except X, e' to 'except X as e' for all X 2018-02-15 00:18:30 +01:00
dns.py samba-tool dns cleanup_record: add missing verbose/quiet options 2018-05-31 01:57:16 +02:00
domain_backup.py netcmd: Use dbcheck to fix DB problems introduced by restore itself 2018-07-05 04:01:26 +02:00
domain.py netcmd: domain backup online command 2018-07-03 10:39:14 +02:00
drs.py samba-tool drs showrepl: correctly report failing repsFrom 2018-07-04 04:43:39 +02:00
dsacl.py Move python modules from source4/scripting/python/ to python/. 2013-03-02 03:57:34 +01:00
forest.py python/samba/netcmd/{forest.py,main.py}: add configuration controls 2018-05-29 05:34:07 +02:00
fsmo.py python: Bulk conversion callers of ldb.Dn second param 2018-04-30 15:43:19 +02:00
gpo.py gpo: Ensure all files are retrieved in fetch 2018-05-12 02:09:29 +02:00
group.py python/samba/netcmd/group.py: add group show 2018-05-29 05:34:08 +02:00
ldapcmp.py samba-tool ldapcmp: remove duplicate takes_optiongroups attribute 2018-03-21 04:36:22 +01:00
main.py python/samba/netcmd/schema.py: add schema query and management. 2018-05-29 05:34:08 +02:00
nettime.py python:samba: move netcmd/time.py to python/samba/netcmd/nettime.py 2016-05-19 15:21:58 +02:00
ntacl.py samba-tool: be consistent in accepting -q for --quiet 2018-05-31 01:57:17 +02:00
ou.py samba-tool: convert 'except X, e' to 'except X as e' for all X 2018-02-15 00:18:30 +01:00
processes.py samba-tool: Ensure that samba-tool processes --name=not-existing does not error 2017-03-28 09:23:11 +02:00
pso.py netcmd: Add samba-tool support for managing PSOs 2018-05-23 06:55:32 +02:00
rodc.py samba-tool: convert 'except X, e' to 'except X as e' for all X 2018-02-15 00:18:30 +01:00
schema.py python/samba/netcmd/schema.py: samdb schema update now 2018-05-29 08:30:52 +02:00
sites.py samba-tool: convert print func to be py2/py3 compatible 2018-03-23 07:28:23 +01:00
spn.py samba-tool/spn: Add a missing newline to error message 2017-05-30 08:06:06 +02:00
testparm.py samba-tool: convert 'except X, e' to 'except X as e' for all X 2018-02-15 00:18:30 +01:00
user.py python/samba/netcmd: net.change_password should be passed string 2018-05-17 11:31:29 +02:00
visualize.py sambatool visualize: add up-to-dateness visualization 2018-06-10 19:02:20 +02:00