1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00
samba-mirror/python/samba/provision
Tim Beale 6681f904aa netcmd: Extend 'backup restore' command to handle renamed domains
When restoring a renamed domain backup, we need to register the new
realm's DNS zone. We do this in the restore step because we don't know
the new server's IP/hostname in the backup step.

Because we may have removed the old realm's DNS entries in the rename
step, the remove_dc() code may fail to find the expected DNS entries for
the DC's domain (the DCs' dnsHostname still maps to the old DNS realm).
We just needed to adjust remove_dns_references() as it was getting a
slightly different error code.

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:25 +02:00
..
__init__.py provision: Small refactor to host-IP logic 2018-07-03 05:24:14 +02:00
backend.py python/samba/provision: Fix urllib.quote usage for py2/py3 2018-05-12 21:38:16 +02:00
common.py samba-tool domain join subdomain: Rework sambadns.py to allow setup of DomainDNSZone only 2013-10-11 10:27:49 +02:00
kerberos.py python: Fix incorrect kdc.conf parameter name in kerberos.py 2017-08-07 15:20:04 +02:00
sambadns.py netcmd: Extend 'backup restore' command to handle renamed domains 2018-07-05 04:01:25 +02:00