Authenticate a Node application with LDAP

This post demonstrates how to authenticate a user against LDAP. Let’s start by installing basic-auth and ldapauth-fork packages npm install ldapauth-fork npm install basic-auth Steps for implementation; Add packages Create an LDAP variable with authentication configuration Basic auth should prompt for your username and password. Once the user is found, verify the given password by trying to bind the user client with the found LDAP user object and the given password.
Read more >