kamax-matrix / mxisd

Federated Matrix Identity Server
GNU Affero General Public License v3.0
223 stars 115 forks source link

use TLS to connect to LDAP #18

Closed Metzlmane closed 7 years ago

Metzlmane commented 7 years ago

I tried to connect without TLS, seems working. I changed the settings to use TLS as i did for synaps, but it didn't work. Did i miss something? I always get: "status":500,"error":"Internal Server Error","exception":"org.apache.directory.ldap.client.api.exception.InvalidConnectionException","message":"Cannot connect to the server: Connection refused","path":"/_matrix/identity/api/v1/lookup"}

Can you please give me an example?

maxidorius commented 7 years ago

I never tried with TLS so far, so I don't know yet how to configure mxisd so the LDAP library works.

I'll check it out and will let you know!

maxidorius commented 7 years ago

I've pushed a commit that enables support for TLS via a configuration option. Please checkout the latest code and add the tls config item to your config file like so and set its value to true,

Metzlmane commented 7 years ago

This works perfectly