summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pykolab/auth/ldap/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pykolab/auth/ldap/__init__.py b/pykolab/auth/ldap/__init__.py
index f0ce2f7..f9e27ff 100644
--- a/pykolab/auth/ldap/__init__.py
+++ b/pykolab/auth/ldap/__init__.py
@@ -1195,7 +1195,7 @@ class LDAP(pykolab.base.Base):
try:
self.ldap.simple_bind_s(bind_dn, bind_pw)
self.bind = True
- except ldap.SERVER_DOWN:
+ except ldap.SERVER_DOWN, errmsg:
log.error(_("LDAP server unavailable: %r") % (errmsg))
log.error(_("%s") % (traceback.format_exc()))
except ldap.INVALID_CREDENTIALS: