From 6aa72b44e42ac02487d5dcd08a67940e10dd1ac6 Mon Sep 17 00:00:00 2001 From: "rcritten@redhat.com" Date: Tue, 2 Oct 2007 16:56:51 -0400 Subject: Do group operations based on the group DN, not the CN Add new class of errors for connections Raise an exception if a connection cannot be made due to missing ccache --- ipa-python/ipaerror.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'ipa-python') diff --git a/ipa-python/ipaerror.py b/ipa-python/ipaerror.py index efcd855f..67bd96dc 100644 --- a/ipa-python/ipaerror.py +++ b/ipa-python/ipaerror.py @@ -108,7 +108,7 @@ LDAP_NOT_FOUND = gen_error_code( LDAP_DUPLICATE = gen_error_code( LDAP_CATEGORY, 0x0004, - "Duplicate entry already in LDAP") + "This entry already exists") LDAP_MISSING_DN = gen_error_code( LDAP_CATEGORY, @@ -129,3 +129,18 @@ INPUT_INVALID_ERROR = gen_error_code( INPUT_CATEGORY, 0x0001, "Illegal input") + +# +# Connection errors +# +CONNECTION_CATEGORY = 0x0003 + +CONNECTION_NO_CONN = gen_error_code( + CONNECTION_CATEGORY, + 0x0001, + "Connection to database failed") + +CONNECTION_NO_CCACHE = gen_error_code( + CONNECTION_CATEGORY, + 0x0002, + "No Kerberos credentials cache is available. Connection cannot be made.") -- cgit