mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove misleading authorization error message in cert-request with --add
https://fedorahosted.org/freeipa/ticket/4540 Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
parent
0cdaf2c48f
commit
8e602eaf46
@ -365,11 +365,7 @@ class cert_request(VirtualCommand):
|
|||||||
if not add:
|
if not add:
|
||||||
raise errors.NotFound(reason=_("The service principal for "
|
raise errors.NotFound(reason=_("The service principal for "
|
||||||
"this request doesn't exist."))
|
"this request doesn't exist."))
|
||||||
try:
|
service = api.Command['service_add'](principal, force=True)
|
||||||
service = api.Command['service_add'](principal, force=True)
|
|
||||||
except errors.ACIError:
|
|
||||||
raise errors.ACIError(info=_('You need to be a member of '
|
|
||||||
'the serviceadmin role to add services'))
|
|
||||||
service = service['result']
|
service = service['result']
|
||||||
dn = service['dn']
|
dn = service['dn']
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user