diff options
author | Rob Crittenden <rcritten@redhat.com> | 2012-02-22 17:42:38 -0500 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-02-23 20:17:12 +0100 |
commit | d4a1dc5712cd2fa9e028a43e5b7146891e5012f0 (patch) | |
tree | 7259092817babb11ba0ea02022d8b9f6a199f467 /ipalib/plugins/host.py | |
parent | 915286fed2771415b48f5476047b283b8a5fed3c (diff) | |
download | freeipa-d4a1dc5712cd2fa9e028a43e5b7146891e5012f0.tar.gz freeipa-d4a1dc5712cd2fa9e028a43e5b7146891e5012f0.tar.xz freeipa-d4a1dc5712cd2fa9e028a43e5b7146891e5012f0.zip |
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
Diffstat (limited to 'ipalib/plugins/host.py')
-rw-r--r-- | ipalib/plugins/host.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipalib/plugins/host.py b/ipalib/plugins/host.py index 682b81420..012817e6b 100644 --- a/ipalib/plugins/host.py +++ b/ipalib/plugins/host.py @@ -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: |