summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/f_service.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugins/f_service.py')
-rw-r--r--ipalib/plugins/f_service.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipalib/plugins/f_service.py b/ipalib/plugins/f_service.py
index 9e9cec538..f02176ffc 100644
--- a/ipalib/plugins/f_service.py
+++ b/ipalib/plugins/f_service.py
@@ -72,6 +72,9 @@ class service_add(crud.Add):
raise errors.MalformedServicePrincipal
service = sp[0]
+ if service.lower() == "host":
+ raise errors.HostService
+
sr = sp[1].split('@')
if len(sr) == 1:
hostname = sr[0].lower()