79590548

Date: 2025-04-24 12:13:08
Score: 1
Natty:
Report link

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);
  });
});

`

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): how did you
  • Low reputation (1):
Posted by: אלעד עסיס