node-activedirectory icon indicating copy to clipboard operation
node-activedirectory copied to clipboard

Authentication fails for case of userPrincipalName with greater than 20 characters substring prior to '@' symbol

Open achawla5000 opened this issue 7 years ago • 0 comments

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!'); } });

achawla5000 avatar Feb 28 '17 20:02 achawla5000