With the help of a user here, I was able to get this to work inn pure javascript. See the code here: Authenticate against LDAP in Node Red
With the help of a user here, I was able to get this to work inn pure javascript. See the code here: Authenticate against LDAP in Node Red