mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 23:23:30 -06:00
rpcserver: fix exception handling for FAST armor failure
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
9a41966a25
commit
563d0a0729
@ -249,7 +249,7 @@ class KrbPrincipalWrongFAST(PrivateError):
|
|||||||
"""
|
"""
|
||||||
Raised when it is not possible to use our FAST armor for kinit
|
Raised when it is not possible to use our FAST armor for kinit
|
||||||
"""
|
"""
|
||||||
format = '%(principal) cannot use Anonymous PKINIT as a FAST armor'
|
format = '%(principal)s cannot use Anonymous PKINIT as a FAST armor'
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# Public errors:
|
# Public errors:
|
||||||
|
@ -1103,8 +1103,7 @@ class login_password(Backend, KerberosSession):
|
|||||||
message=unicode(e))
|
message=unicode(e))
|
||||||
elif ('kinit: Error constructing AP-REQ armor: '
|
elif ('kinit: Error constructing AP-REQ armor: '
|
||||||
'Matching credential not found') in str(e):
|
'Matching credential not found') in str(e):
|
||||||
raise KrbPrincipalWrongFAST(principal=principal,
|
raise KrbPrincipalWrongFAST(principal=principal)
|
||||||
message=unicode(e))
|
|
||||||
raise InvalidSessionPassword(principal=principal,
|
raise InvalidSessionPassword(principal=principal,
|
||||||
message=unicode(e))
|
message=unicode(e))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user