This trace:
TypeError: Cannot read properties of undefined (reading 'isConnected')
at authenticateWithUser (/node_modules/ldap-authentication/index.js:242:24)
We do now:
try {
ldapUserClient = await _ldapBind(userDn, userPassword, starttls, ldapOpts)
} catch (error) {
if (ldapUserClient.isConnected) {
await ldapUserClient.unbind()
}
throw error
}
But if we will catch an exception here, the ldapUserClient will be undefined.
This trace:
We do now:
But if we will catch an exception here, the ldapUserClient will be undefined.