how did you connect to the ldap ? by the socket you get access to the ldap ? I did it, and I get error when i try to create client: `const createConnection = async (url, user, pass) => {
const client = ldap.createClient({ url: `ldap://${url}` });
return new Promise((resolve, reject) => {
client.bind(user, pass, (err) => {
if (err) {
client.unbind();
// return reject(new Error("LDAP bind failed"));
return reject(err);
}
console.log("LDAP bind successful");
resolve(client);
});
});
`