author | Aurelien Campeas <aurelien.campeas@logilab.fr> |
Mon, 26 Mar 2012 13:29:27 +0200 | |
changeset 8329 | ac2b17bd7311 |
parent 8328 | c53bbeea7870 |
child 8340 | 622fcca4fe00 |
--- 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