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:
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;
|
||||
|
||||
Reference in New Issue
Block a user