diff -r 592c88c8f018 -r 52d1568af412 server/sources/ldapuser.py --- a/server/sources/ldapuser.py Tue Oct 26 20:22:30 2010 +0200 +++ b/server/sources/ldapuser.py Wed Oct 27 08:51:50 2010 +0200 @@ -266,7 +266,10 @@ def get_connection(self): """open and return a connection to the source""" if self._conn is None: - self._connect() + try: + self._connect() + except: + self.exception('cant connect to ldap') return ConnectionWrapper(self._conn) def authenticate(self, session, login, password=None, **kwargs):