summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipalib/plugins/idviews.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ipalib/plugins/idviews.py b/ipalib/plugins/idviews.py
index 1ae1709a1..bfa8675fb 100644
--- a/ipalib/plugins/idviews.py
+++ b/ipalib/plugins/idviews.py
@@ -240,6 +240,12 @@ class baseidview_apply(LDAPQuery):
# the ipaAssignedIDView to None
view_dn = None
+ if view == 'Default Trust View':
+ raise errors.ValidationError(
+ name=_('ID View'),
+ error=_('Default Trust View cannot be applied on hosts')
+ )
+
completed = 0
succeeded = {'host': []}
failed = {