[Ldap] enabling tls

Hello

I'm trying to get a working ejabberd installation and i stuck since a day on it.

I installed Ejabberd from debian backports then i've got 15.10 version.
I configure ejabberd to connect to my ldap server. After a test everything was working fine !
At this point i decided to switch over a TLS connection to my LDAP server and now nothing work.

i just add :
ldap_encrypt: tls
ldap_tls_cacertfile: "/etc/ldap/ssl/ldap/ldap-slapd-cert.pem"

Do i need to add something ?
Do i need to chown cert to ejabberd user ?

ejabberdctl live give me :
18:08:40.103 [error] LDAP connection failed:
** Server: ldap.u129.fr:389
** Reason: closed
** Socket options: [{packet,asn1},{active,true},{keepalive,true},binary,{verify,1},{cacertfile,"/etc/ldap/ssl/ldap/ldap-slapd-cert.pem"},{depth,0}]

Syndicate content