git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netcmd/domain: remove dns records after DC demote
[samba.git]
/
python
/
samba
/
netcmd
/
domain.py
diff --git
a/python/samba/netcmd/domain.py
b/python/samba/netcmd/domain.py
index 6a78a6b630b359ae8d1c9b78242f737751ce1289..3dbe2fba9e9721e7b712ba98e3a5858933e160a8 100644
(file)
--- a/
python/samba/netcmd/domain.py
+++ b/
python/samba/netcmd/domain.py
@@
-1028,6
+1028,10
@@
class cmd_domain_demote(Command):
except ldb.LdbError as l:
pass
+ # get dns host name for target server to demote, remove dns references
+ remove_dc.remove_dns_references(remote_samdb, logger, samdb.host_dns_name(),
+ ignore_no_name=True)
+
self.errf.write("Demote successful\n")