1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
samba-mirror/python/samba/netcmd
Tim Beale c8f0b88571 netcmd: Add sanity-check for invalid domain rename args
We are suggesting to users that it's safe to run a renamed domain in
parallel with the old backed-up domain. However, this would not be the
case if the user (foolishly) "renames" their domain using the exact same
NetBIOS name or DNS realm.

Using the same DNS realm fails later on (updating the dnsRoot values),
but using the same NetBIOS name actually succeeds. While we can't make
samba tools completely idiot-proof, we can protect users from the most
basic of (potentially unintended) errors with some simple sanity-checks.

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-10 04:42:10 +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: Add sanity-check for invalid domain rename args 2018-07-10 04:42:10 +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
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