samba-tool domain demote: Remove correct DNs and from the correct locations
authorAndrew Bartlett <abartlet@samba.org>
Fri, 23 Oct 2015 00:05:24 +0000 (13:05 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 26 Oct 2015 04:11:22 +0000 (05:11 +0100)
commit00ffb67be2c73582502ef1d2931853ec9899a9ef
tree847e9b211d9cb728126aa1aba5af7a3bada6becf
parentfff09dae6d299a2b45bda44264c98cfde2348880
samba-tool domain demote: Remove correct DNs and from the correct locations

The previous code missed the CN=DFSR-GlobalSettings children and did
not cope with subdomains.  The root DN may not be the domain DN if
we are a subdomain.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/remove_dc.py