Don't allow IPA master hosts or important services be deleted.

Deleting these would cause the IPA master to blow up.

For services I'm taking a conservative approach and only limiting the
deletion of known services we care about.

https://fedorahosted.org/freeipa/ticket/2425
This commit is contained in:
Rob Crittenden
2012-02-22 17:42:38 -05:00
committed by Martin Kosek
parent 915286fed2
commit d4a1dc5712
5 changed files with 51 additions and 0 deletions

View File

@@ -560,6 +560,7 @@ class host_del(LDAPDelete):
fqdn = hostentry['fqdn'][0]
else:
fqdn = keys[-1]
host_is_master(ldap, fqdn)
# Remove all service records for this host
truncated = True
while truncated: