cubicweb #830597 LDAPS and certificate issue (maybe Windows specific) [resolved]

2010-04-02 14:03:11 - (cubicweb.twisted) ERROR: what happened ...

Traceback (most recent call last):

 File "C:\pylos\cubicweb\etwist\service.py", line 48, in SvcDoRun

   root_resource = CubicWebRootResource(config, False)

 File "C:\pylos\cubicweb\etwist\server.py", line 110, in __init__

   self.appli = CubicWebPublisher(config, debug=self.debugmode)

 File "C:\pylos\cubicweb\web\application.py", line 240, in __init__

   self.repo = config.repository(vreg)

 File "C:\pylos\cubicweb\web\webconfig.py", line 203, in repository

   repo = get_repository('inmemory', vreg=vreg, config=self)

 File "C:\pylos\cubicweb\dbapi.py", line 102, in get_repository

   return Repository(config, vreg=vreg)

 File "C:\pylos\cubicweb\server\repository.py", line 185, in __init__

   self.open_connections_pools()

 File "C:\pylos\cubicweb\server\repository.py", line 190, in open_connections_pools

   self._available_pools.put_nowait(ConnectionsPool(self.sources))

 File "C:\pylos\cubicweb\server\pool.py", line 31, in __init__

   self.source_cnxs[source.uri] = (source, source.get_connection())

 File "C:\pylos\cubicweb\server\sources\ldapuser.py", line 237, in get_connection

   self._connect()

 File "C:\pylos\cubicweb\server\sources\ldapuser.py", line 437, in _connect

   self._authenticate(conn, {'dn': self.cnx_dn}, self.cnx_pwd)

 File "C:\pylos\cubicweb\server\sources\ldapuser.py", line 445, in _auth_simple

   conn.simple_bind_s(user['dn'], userpwd)

 File "C:\Python25\lib\site-packages\ldap\ldapobject.py", line 787, in simple_bind_s

   return SimpleLDAPObject.simple_bind_s(self,*args,**kwargs)

 File "C:\Python25\lib\site-packages\ldap\ldapobject.py", line 198, in simple_bind_s

   msgid = self.simple_bind(who,cred,serverctrls,clientctrls)

 File "C:\Python25\lib\site-packages\ldap\ldapobject.py", line 192, in simple_bind

   return self._ldap_call(self._l.simple_bind,who,cred,EncodeControlTuples(serverctrls),EncodeControlTuples(clientctrls))

 File "C:\Python25\lib\site-packages\ldap\ldapobject.py", line 96, in _ldap_call

   result = func(*args,**kwargs)

SERVER_DOWN: {'info': 'error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', 'desc': "Can't contact LDAP server"}

the ADAM server is available via ldaps (tested with another client), the configuration seems OK.

priorityimportant
typebug
done in3.7.5
load2.000
load left0.000
closed by<not specified>