From 91eff4ad07d410963540b9b217e770a6567d21fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Wed, 21 May 2025 16:34:12 +0400 Subject: [PATCH] Add missing unbind --- ldap.ts | 2 ++ 1 file changed, 2 insertions(+) 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;