This commit is contained in:
parent
994053e080
commit
91eff4ad07
2
ldap.ts
2
ldap.ts
@ -49,6 +49,8 @@ export async function lookupUsernameByPubkey(pubkey: string): Promise<string | u
|
|||||||
if (searchEntries.length > 0) {
|
if (searchEntries.length > 0) {
|
||||||
username = searchEntries[0].cn.toString();
|
username = searchEntries[0].cn.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
await client.unbind();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
await client.unbind();
|
await client.unbind();
|
||||||
throw e;
|
throw e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user