node-activedirectory
node-activedirectory copied to clipboard
authenticate gives error at net.connect in ldapjs
I got this error :
Uncaught TypeError: net.connect is not a function at connectSocket (client.js:1039) at Backoff.eval (client.js:1203) at Backoff.EventEmitter.emit (events.js:84) at Backoff.onBackoff_ (backoff.js:53) connectSocket @ client.js:1039 (anonymous) @ client.js:1203 EventEmitter.emit @ events.js:84 Backoff.onBackoff_ @ backoff.js:53
Using the same exemple of the readme:
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!');
}
});
Is anyone had this problem and how have you solved it???