fix(types): typecast ldap options due to wrong types in ldapjs

The provided types by ldapauth-fork are re-exported from ldapjs. ldapjs
is unmaintained by now but since their last update, the
ConnectionOptions type seems to not contain the mandatory parameter
`url` anymore. Therefore this typecast is needed.

Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson 2024-09-13 13:47:19 +02:00
parent 3261929a2a
commit 3e17edf95d

View file

@ -72,7 +72,7 @@ export class LdapService {
tlsOptions: {
ca: ldapConfig.tlsCaCerts,
},
});
} as LdapAuth.Options);
auth.once('error', (error: string | Error) => {
const exception = this.getLdapException(username, error);