summaryrefslogtreecommitdiffstats
path: root/ipa-server
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2007-11-09 16:34:52 -0500
committerRob Crittenden <rcritten@redhat.com>2007-11-09 16:34:52 -0500
commit99b84bfd01e0b3f4e9e69ea7c2912545bef0d71a (patch)
tree225cf00948fe031c7c5db7c5ac16036fe07fdfaf /ipa-server
parentf7358533d0b81f70f10e9116652f4e7d71e29b02 (diff)
downloadfreeipa-99b84bfd01e0b3f4e9e69ea7c2912545bef0d71a.tar.gz
freeipa-99b84bfd01e0b3f4e9e69ea7c2912545bef0d71a.tar.xz
freeipa-99b84bfd01e0b3f4e9e69ea7c2912545bef0d71a.zip
Handle ldap.UNWILLING_TO_PERFORM more gracefully
Diffstat (limited to 'ipa-server')
-rw-r--r--ipa-server/xmlrpc-server/funcs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ipa-server/xmlrpc-server/funcs.py b/ipa-server/xmlrpc-server/funcs.py
index 6fdaaca51..a45124525 100644
--- a/ipa-server/xmlrpc-server/funcs.py
+++ b/ipa-server/xmlrpc-server/funcs.py
@@ -77,7 +77,10 @@ class IPAConnPool:
conn = ipaserver.ipaldap.IPAdmin(host,port,None,None,None,debug)
# This will bind the connection
- conn.set_krbccache(krbccache, cprinc.name)
+ try:
+ conn.set_krbccache(krbccache, cprinc.name)
+ except ldap.UNWILLING_TO_PERFORM, e:
+ raise ipaerror.gen_exception(ipaerror.CONNECTION_UNWILLING)
return conn