Server-del: fix system records removal

Services on replica to be removed  must be deleted first, otherwise
update of system records will not take this change into account

https://fedorahosted.org/freeipa/ticket/2008

Reviewed-By: Petr Spacek <pspacek@redhat.com>
This commit is contained in:
Martin Basti 2016-06-20 19:27:55 +02:00
parent 0db48e4d04
commit 926462d335

View File

@ -682,12 +682,12 @@ class server_del(LDAPDelete):
# remove the references to master's ldap/http principals
self._remove_server_principal_references(pkey)
# try to clean up the leftover DNS entries
self._cleanup_server_dns_records(pkey)
# finally destroy all Kerberos principals
self._remove_server_host_services(ldap, pkey)
# try to clean up the leftover DNS entries
self._cleanup_server_dns_records(pkey)
return dn
def exc_callback(self, keys, options, exc, call_func, *call_args,