Update plugins/catalog-backend-module-ldap/src/ldap/client.ts

Co-authored-by: Jessica He <jessicahe4741@gmail.com>
Signed-off-by: Ganiev Shamil <ganiev@pm.me>
This commit is contained in:
Ganiev Shamil
2025-08-19 18:02:07 +03:00
committed by Shamil Ganiev
parent 1377ea16f0
commit 3d5a12a104
@@ -72,7 +72,7 @@ export class LdapClient {
await client.bind(bind.dn, bind.secret);
} catch (error) {
await client.unbind();
throw error(`LDAP bind failed for ${bind.dn}, ${error}`);
throw new ForwardedError(`LDAP bind failed for ${bind.dn}, ${error}`, error);
}
}
return ldapClient;