cubicweb #2279159 crash when logging + one ldap source is down (ie the actual ldap server is down) [open]

we get this _directly_ in the browser !

Traceback (most recent call last):
File "e:\Pylos\Pagode\cubicweb\etwist\server.py", line 311, in render_request
return self._render_request(request)
File "e:\Pylos\Pagode\cubicweb\etwist\server.py", line 340, in _render_request
self.appli.connect(req)
File "e:\Pylos\Pagode\cubicweb\web\application.py", line 310, in connect
self.session_handler.set_session(req)
File "e:\Pylos\Pagode\cubicweb\web\application.py", line 226, in set_session
if self.open_session(req, allow_no_cnx=False):
File "e:\Pylos\Pagode\cubicweb\web\application.py", line 248, in open_session
session = self.session_manager.open_session(req, allow_no_cnx=allow_no_cnx)
File "e:\Pylos\Pagode\cubicweb\web\views\sessions.py", line 75, in open_session
cnx, login = self.authmanager.authenticate(req)
File "e:\Pylos\Pagode\cubicweb\web\views\authentication.py", line 153, in authenticate
cnx = self._authenticate(login, authinfo)
File "e:\Pylos\Pagode\cubicweb\web\views\authentication.py", line 174, in _authenticate
cnx = repo_connect(self.repo, login, cnxprops=cnxprops, **authinfo)
File "e:\Pylos\Pagode\cubicweb\dbapi.py", line 124, in repo_connect
cnxid = repo.connect(unicode(login), **kwargs)
File "e:\Pylos\Pagode\cubicweb\server\repository.py", line 737, in connect
user = self.authenticate_user(session, login, **kwargs)
File "e:\Pylos\Pagode\cubicweb\server\repository.py", line 452, in authenticate_user
eid = self.check_auth_info(session, login, authinfo)
File "e:\Pylos\Pagode\cubicweb\server\repository.py", line 442, in check_auth_info
return source.authenticate(session, login, **authinfo)
File "e:\Pylos\Pagode\cubicweb\server\sources\ldapuser.py", line 299, in authenticate
self.user_base_scope, searchstr)[0]
File "e:\Pylos\Pagode\cubicweb\server\sources\ldapuser.py", line 535, in _search
res = cnx.search_s(base, scope, searchstr, attrs)
File "c:\python26\lib\site-packages\ldap\ldapobject.py", line 502, in search_s
return self.search_ext_s(base,scope,filterstr,attrlist,attrsonly,None,None,timeout=self.timeout)
File "c:\python26\lib\site-packages\ldap\ldapobject.py", line 814, in search_ext_s
return self._apply_method_s(SimpleLDAPObject.search_ext_s,*args,**kwargs)
File "c:\python26\lib\site-packages\ldap\ldapobject.py", line 771, in _apply_method_s
self.reconnect(self._uri)
File "c:\python26\lib\site-packages\ldap\ldapobject.py", line 740, in reconnect
self._apply_last_bind()
File "c:\python26\lib\site-packages\ldap\ldapobject.py", line 716, in _apply_last_bind
func(*args,**kwargs)
File "c:\python26\lib\site-packages\ldap\ldapobject.py", line 781, in simple_bind_s
return SimpleLDAPObject.simple_bind_s(self,*args,**kwargs)
File "c:\python26\lib\site-packages\ldap\ldapobject.py", line 206, in simple_bind_s
msgid = self.simple_bind(who,cred,serverctrls,clientctrls)
File "c:\python26\lib\site-packages\ldap\ldapobject.py", line 200, in simple_bind
return self._ldap_call(self._l.simple_bind,who,cred,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls))
File "c:\python26\lib\site-packages\ldap\ldapobject.py", line 96, in _ldap_call
result = func(*args,**kwargs)
SERVER_DOWN: {'desc': "Can't contact LDAP server"}

prioritynormal
typebug
done in<not specified>
load0.200
load left0.200
closed by<not specified>