Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

create client and it error but i got two times #801

Closed
JasenYang opened this issue Apr 21, 2022 · 2 comments
Closed

create client and it error but i got two times #801

JasenYang opened this issue Apr 21, 2022 · 2 comments

Comments

@JasenYang
Copy link

image

` const clientOps = {
BASE_DN: "dn=admin,dc=example,dc=com",
bindCredentials: "123456",
bindDN: "dc=example,dc=com",
host: "127.0.0.1",
port: "389",
queryCriteria: "dn",
url: "ldap://127.0.0.1/cn=admin,dc=example,dc=com",
}

const client = ldap.createClient(clientOps);
let i = 1;
client.on('error', (err) => {
    console.log(`ldap error time : ${i}`)
    i++;
})`

output
ldap error time : 1 ldap error time : 2

@jsumners
Copy link
Member

Would you like to send a Pull Request to address this issue? Remember to add unit tests.

@jsumners
Copy link
Member

👋

On February 22, 2023, we released version 3 of this library. As a result, we are closing this issue/pull request.

Please see issue #839 for more information, including how to proceed if you feel this closure is in error.

@ldapjs ldapjs locked as resolved and limited conversation to collaborators Feb 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants