From 3e17edf95dd916e84fd4953744ec0b340397db10 Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Fri, 13 Sep 2024 13:47:19 +0200 Subject: [PATCH] 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 --- backend/src/identity/ldap/ldap.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/identity/ldap/ldap.service.ts b/backend/src/identity/ldap/ldap.service.ts index dba7b02a7..64adbfebe 100644 --- a/backend/src/identity/ldap/ldap.service.ts +++ b/backend/src/identity/ldap/ldap.service.ts @@ -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);