mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add a format to the generic KerberosError class
This commit is contained in:
committed by
Jason Gerard DeRose
parent
13696ae18b
commit
067b5c122c
@@ -420,9 +420,18 @@ class AuthenticationError(PublicError):
|
|||||||
class KerberosError(AuthenticationError):
|
class KerberosError(AuthenticationError):
|
||||||
"""
|
"""
|
||||||
**1100** Base class for Kerberos authentication errors (*1100 - 1199*).
|
**1100** Base class for Kerberos authentication errors (*1100 - 1199*).
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
>>> raise KerberosError(major='Unspecified GSS failure. Minor code may provide more information', minor='No credentials cache found')
|
||||||
|
Traceback (most recent call last):
|
||||||
|
...
|
||||||
|
KerberosError: Kerberos error: Unspecified GSS failure. Minor code may provide more information/No credentials cache found
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
errno = 1100
|
errno = 1100
|
||||||
|
format= _('Kerberos error: %(major)s/%(minor)s')
|
||||||
|
|
||||||
|
|
||||||
class CCacheError(KerberosError):
|
class CCacheError(KerberosError):
|
||||||
|
Reference in New Issue
Block a user