Active Directory authentication with NodeJS
问题 I'm trying to build one NodeJS server and planning to use the organization's Microsoft Active Directory for authentication. I tried the same with many packages (activedirectory, activedirectory2, ldapjs etc.) But none of them seems to work for me. I'm supplying the LDAP URL and below is my code. var ldapjs = require('ldapjs'); var config = { url: 'ldap://mycompany.com/dc=mycompany,dc=com' ,timeout: 10 ,reconnect: { "initialDelay": 100, "maxDelay": 500, "failAfter": 5 } } var username = "user