LDAP plugin does not support StartTLS
I get the following error when I try to connect to my OpenLDAP:
warn[6/5/2020, 12:51:42 PM] Cannot login ******* in LDAP plugin.
{
"err": {
"stack": "ConfidentialityRequiredError: confidentiality required\n at messageCallback (/usr/local/www/peertube/storage/plugins/node_modules/ldapjs/lib/client/client.js:1198:45)\n at Parser.onMessage (/usr/local/www/peertube/storage/plugins/node_modules/ldapjs/lib/client/client.js:876:14)\n at Parser.emit (events.js:310:20)\n at Parser.write (/usr/local/www/peertube/storage/plugins/node_modules/ldapjs/lib/messages/parser.js:107:8)\n at Socket.onData (/usr/local/www/peertube/storage/plugins/node_modules/ldapjs/lib/client/client.js:863:22)\n at Socket.emit (events.js:310:20)\n at addChunk (_stream_readable.js:286:12)\n at readableAddChunk (_stream_readable.js:268:9)\n at Socket.Readable.push (_stream_readable.js:209:10)\n at TCP.onStreamRead (internal/stream_base_commons.js:186:23)",
"lde_message": "confidentiality required",
"lde_dn": null
}
}
I used this as the URL. The same URL works for e.g. Nextcloud: ldap://ldap.example.org:389
ldapauth-fork
the library used for the LDAP plugin does support StartTLS but the plugin needs to be adapted for it.