mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Added ServiceError (KerberosError) and make rpc.KerbTransport raise it if appropriate
This commit is contained in:
committed by
Rob Crittenden
parent
114b6b8577
commit
0313f03277
@@ -410,6 +410,23 @@ class KerberosError(AuthenticationError):
|
||||
errno = 1100
|
||||
|
||||
|
||||
class ServiceError(KerberosError):
|
||||
"""
|
||||
**1101** Raised when service is not found in Kerberos DB.
|
||||
|
||||
For example:
|
||||
|
||||
>>> raise ServiceError(service='HTTP@localhost')
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ServiceError: Service 'HTTP@localhost' not found in Kerberos database
|
||||
|
||||
"""
|
||||
|
||||
errno = 1101
|
||||
format = _('Service %(service)r not found in Kerberos database')
|
||||
|
||||
|
||||
|
||||
##############################################################################
|
||||
# 2000 - 2999: Authorization errors
|
||||
|
||||
Reference in New Issue
Block a user