changeset 8329 | ac2b17bd7311 |
parent 8250 | 171a9d6bff8f |
child 8384 | 98782f17dd84 |
--- a/server/ldaputils.py Thu Mar 22 11:50:34 2012 +0100 +++ b/server/ldaputils.py Mon Mar 26 13:29:27 2012 +0200 @@ -203,7 +203,7 @@ try: user = self._search(session, self.user_base_dn, self.user_base_scope, searchstr)[0] - except IndexError: + except (IndexError, ldap.SERVER_DOWN): # no such user raise AuthenticationError() # check password by establishing a (unused) connection