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

authenticate gives error at net.connect in ldapjs

Open fredoumulateur opened this issue 8 years ago • 0 comments

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???

fredoumulateur avatar Mar 22 '17 23:03 fredoumulateur