Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"In order to perform this operation a successful bind must be completed on the connection." #69

Closed
kevinhikaruevans opened this issue Mar 20, 2015 · 1 comment
Labels

Comments

@kevinhikaruevans
Copy link

I'm currently trying to get a list of the users on a domain and using this:

  var ad = new ActiveDirectory({ url: 'ldap://192.168.0.10',
                                 baseDN: 'DC=o3international,DC=local' });

  ad.findUsers('cn=*', function(err, users) {
    console.log(err, users);
  });

However, it gives this error:

[OperationsError: 000004DC: LdapErr: DSID-0C090727, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v23f0]

How exactly do you bind first? I've tried authenticating successfully and putting the findUsers within the authenticate callback method, but it didn't work either.

@kevinhikaruevans
Copy link
Author

Nevermind. Figured it out.

Was not passing in bindDN/bindCredentials (duh).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants