mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-13 09:41:55 -06:00
Fix service validator, ensure the service isn't blank.
ticket 961
This commit is contained in:
parent
57b36ae65d
commit
f558ffe294
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user