I'm hosting joplin server and want to use the LDAP functionality. But my ldaps server uses a self-signed certificate for various unfortunate, inconvenient reasons.
Currently the self-signed certificate makes it impossible to use with joplin server (you get an error message saying Could not bind to the ldap server ldaps://...: self-signed certificate
. I think based on the docs for ldapts that this could be supported by adding
tlsOptions: {
ca: [ fs.readFileSync('server-cert.pem') ]
}
to the ldap client here.
Would this be something that a PR would be accepted for? Of course it would be an optional config, and if not provided would have the existing behavior.