node-activedirectory
node-activedirectory copied to clipboard
Authentication fails for case of userPrincipalName with greater than 20 characters substring prior to '@' symbol
Consider the case below. For the case below assume the username and password credentials are correct. The authentication, however, fails.
var ad = new ActiveDirectory(config); var username = '[email protected]'; var password = 'password';
ad.authenticate(username, password, function(err, auth) { if (err) { console.log('ERROR: '+JSON.stringify(err)); return; }
if (auth) { console.log('Authenticated!'); } else { console.log('Authentication failed!'); } });