mirror of
https://github.com/bitwarden/directory-connector
synced 2026-02-12 06:23:42 +00:00
Compare commits
1 Commits
main
...
ac/pm-2648
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b39316baf |
@@ -68,10 +68,12 @@ export class LdapDirectoryService implements IDirectoryService {
|
||||
}
|
||||
groups = await this.getGroups(groupForce);
|
||||
}
|
||||
} finally {
|
||||
} catch (e) {
|
||||
await this.client.unbind();
|
||||
throw e;
|
||||
}
|
||||
|
||||
await this.client.unbind();
|
||||
return [groups, users];
|
||||
}
|
||||
|
||||
@@ -453,8 +455,9 @@ export class LdapDirectoryService implements IDirectoryService {
|
||||
|
||||
try {
|
||||
await this.client.bind(user, pass);
|
||||
} catch {
|
||||
} catch (error) {
|
||||
await this.client.unbind();
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user