diff --git a/ldap.ts b/ldap.ts index ef17d13..2785052 100644 --- a/ldap.ts +++ b/ldap.ts @@ -49,6 +49,8 @@ export async function lookupUsernameByPubkey(pubkey: string): Promise 0) { username = searchEntries[0].cn.toString(); } + + await client.unbind(); } catch (e) { await client.unbind(); throw e;