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

Connection error. Invalid dn syntax has been specified #2

Open
swanvryba opened this issue Mar 5, 2019 · 2 comments
Open

Connection error. Invalid dn syntax has been specified #2

swanvryba opened this issue Mar 5, 2019 · 2 comments

Comments

@swanvryba
Copy link

swanvryba commented Mar 5, 2019

Could you provide correct connection through npm "activedirectory"? You wrote that it is compatible with this library.
I try different domains and credentials but always has an error "Incorrect DN given : ___ is invalid"

let ad = new ActiveDirectory({ url: 'ldap://127.0.0.1:10389', baseDN: 'DC=wimpi,DC=net' });
ad.authenticate('test', 'secret', (err, auth) => { if (err) { console.log('ERROR: ' + JSON.stringify(err)); } if (auth) { console.log(true); } else { console.log(false); } });

@kinow
Copy link

kinow commented Jul 8, 2020

I think the user must be uid=admin,ou=system. The password appears to be correct.

@kinow
Copy link

kinow commented Jul 8, 2020

And when I connected (with Java), I didn't use a base DN.

image

Hope that helps

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

No branches or pull requests

2 participants