summaryrefslogtreecommitdiffstats
path: root/ipalib/errors2.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2009-01-23 12:51:48 -0700
committerRob Crittenden <rcritten@redhat.com>2009-02-03 15:29:02 -0500
commit0313f03277cf0b3e3b24019fd22734dab65d4860 (patch)
tree1143714800efee619cb6e6ec9927158f7c37c57f /ipalib/errors2.py
parent114b6b8577ca9585efe8914d5fdd739f208d6ba8 (diff)
downloadfreeipa.git-0313f03277cf0b3e3b24019fd22734dab65d4860.tar.gz
freeipa.git-0313f03277cf0b3e3b24019fd22734dab65d4860.tar.xz
freeipa.git-0313f03277cf0b3e3b24019fd22734dab65d4860.zip
Added ServiceError (KerberosError) and make rpc.KerbTransport raise it if appropriate
Diffstat (limited to 'ipalib/errors2.py')
-rw-r--r--ipalib/errors2.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/ipalib/errors2.py b/ipalib/errors2.py
index 91b23115..4a6a517d 100644
--- a/ipalib/errors2.py
+++ b/ipalib/errors2.py
@@ -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