diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-09-10 16:10:30 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-09-14 09:46:39 -0400 |
commit | eca7cdc94a8377237533259755a19b75c313bd99 (patch) | |
tree | e055c6ac84f3ada3254837e084a0c77d73e06a6f /ipaserver/plugins | |
parent | 2c3bca7e7435cf8c24f8af12cd4572830084004c (diff) | |
download | freeipa-eca7cdc94a8377237533259755a19b75c313bd99.tar.gz freeipa-eca7cdc94a8377237533259755a19b75c313bd99.tar.xz freeipa-eca7cdc94a8377237533259755a19b75c313bd99.zip |
Raise more specific error when an Objectclass Violation occurs Fix the virtual plugin to work with the new backend
Diffstat (limited to 'ipaserver/plugins')
-rw-r--r-- | ipaserver/plugins/ldap2.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ipaserver/plugins/ldap2.py b/ipaserver/plugins/ldap2.py index 639552b26..c854dac28 100644 --- a/ipaserver/plugins/ldap2.py +++ b/ipaserver/plugins/ldap2.py @@ -99,6 +99,8 @@ def _handle_errors(e, **kw): # it indicates the previous attribute was removed by another # update, making the oldentry stale. raise errors.MidairCollision() + except _ldap.OBJECT_CLASS_VIOLATION: + raise errors.ObjectclassViolation(info=info) except _ldap.ADMINLIMIT_EXCEEDED, e: raise errors.LimitsExceeded() except _ldap.SIZELIMIT_EXCEEDED, e: |