Authenticate against LDAP in Node Red

I’ve used this pattern with Node-RED and AD. For a simple credential check, binding as the user works, but I’d avoid sending the password through Debug nodes or storing it in flow context. Use LDAPS with the CA chain installed in the container, and make sure the certificate hostname matches the URL. Port 636 is implicit TLS, while StartTLS is configured differently.

For anything sensitive, I prefer putting authentication behind a proxy or captive portal and letting Node-RED receive a verified identity. A security assessment from > essenz

can also help spot certificate, logging, and patching weaknesses before production.

Using an external proxy with a suitable IdM tool is always the better option.

ldapjs is deprecated