We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a2168c commit db3e7aaCopy full SHA for db3e7aa
src/services/directory-services/ldap-directory.service.ts
@@ -68,10 +68,12 @@ export class LdapDirectoryService implements IDirectoryService {
68
}
69
groups = await this.getGroups(groupForce);
70
71
- } finally {
+ } catch (e) {
72
await this.client.unbind();
73
+ throw e;
74
75
76
+ await this.client.unbind();
77
return [groups, users];
78
79
@@ -453,8 +455,9 @@ export class LdapDirectoryService implements IDirectoryService {
453
455
454
456
try {
457
await this.client.bind(user, pass);
- } catch {
458
+ } catch (error) {
459
460
+ throw error;
461
462
463
0 commit comments