fix(Ldap Node): Fix issue with connections not closing correctly (#7432)

This commit is contained in:
pemontto
2023-10-13 12:15:54 +01:00
committed by GitHub
parent bd5ea455e1
commit c3f0be809f
3 changed files with 55 additions and 6 deletions

View File

@@ -39,6 +39,11 @@ export async function createLdapClient(
}
}
if (credentials.timeout) {
// Convert seconds to milliseconds
ldapOptions.timeout = (credentials.timeout as number) * 1000;
}
if (nodeDebug) {
Logger.info(
`[${nodeType} | ${nodeName}] - LDAP Options: ${JSON.stringify(ldapOptions, null, 2)}`,