diff options
author | rcritten@redhat.com <rcritten@redhat.com> | 2007-10-02 16:56:51 -0400 |
---|---|---|
committer | rcritten@redhat.com <rcritten@redhat.com> | 2007-10-02 16:56:51 -0400 |
commit | 6aa72b44e42ac02487d5dcd08a67940e10dd1ac6 (patch) | |
tree | 4f0421e3a761e0d7eb77db32260990394a0b6aa0 /ipa-python/ipaerror.py | |
parent | cfac4acf9fb152d685e342bd5adabb5ec2fa2c74 (diff) | |
download | freeipa-6aa72b44e42ac02487d5dcd08a67940e10dd1ac6.tar.gz freeipa-6aa72b44e42ac02487d5dcd08a67940e10dd1ac6.tar.xz freeipa-6aa72b44e42ac02487d5dcd08a67940e10dd1ac6.zip |
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
Diffstat (limited to 'ipa-python/ipaerror.py')
-rw-r--r-- | ipa-python/ipaerror.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/ipa-python/ipaerror.py b/ipa-python/ipaerror.py index efcd855f3..67bd96dc3 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.") |