diff options
-rw-r--r-- | ipalib/plugins/service.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ipalib/plugins/service.py b/ipalib/plugins/service.py index 970ed0437..e1f54ba4b 100644 --- a/ipalib/plugins/service.py +++ b/ipalib/plugins/service.py @@ -125,6 +125,10 @@ def split_principal(principal): raise errors.MalformedServicePrincipal(reason='missing service') service = sp[0] + if len(service) == 0: + raise errors.MalformedServicePrincipal( + reason='blank service' + ) sr = sp[1].split('@') if len(sr) > 2: raise errors.MalformedServicePrincipal( |