We are planning to integrate with Azure AD and have explored Graph API.
We were thinking if we can connect to Azure AD using a protocol based implementation something like this.
const ldap = require('ldapjs');
const client = ldap.createClient({
url: ['ldap://127.0.0.1:1389', 'ldap://127.0.0.2:1389']
});
client.on('error', (err) => {
// handle connection error
})