summaryrefslogtreecommitdiffstats
path: root/ipapython/ipaldap.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython/ipaldap.py')
-rw-r--r--ipapython/ipaldap.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipapython/ipaldap.py b/ipapython/ipaldap.py
index 44918c39a..2818f787b 100644
--- a/ipapython/ipaldap.py
+++ b/ipapython/ipaldap.py
@@ -1204,6 +1204,10 @@ class LDAPClient(object):
pass
except ldap.CONNECT_ERROR:
raise errors.DatabaseError(desc=desc, info=info)
+ except ldap.UNWILLING_TO_PERFORM:
+ raise errors.DatabaseError(desc=desc, info=info)
+ except ldap.AUTH_UNKNOWN:
+ raise errors.ACIError(info='%s (%s)' % (info,desc))
except ldap.LDAPError, e:
if 'NOT_ALLOWED_TO_DELEGATE' in info:
raise errors.ACIError(