From a7e2f1997865953cdf96a860c0e0dd76fd6de552 Mon Sep 17 00:00:00 2001 From: yu-i-i Date: Wed, 1 Apr 2026 22:42:23 +0200 Subject: [PATCH] Authentication: fix ldap searchAttributes for passport-ldapauth 3.0.1 --- .../modules/authentication/ldap/app/src/LDAPModuleManager.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/modules/authentication/ldap/app/src/LDAPModuleManager.mjs b/services/web/modules/authentication/ldap/app/src/LDAPModuleManager.mjs index 2f2e238828..f2beccad80 100644 --- a/services/web/modules/authentication/ldap/app/src/LDAPModuleManager.mjs +++ b/services/web/modules/authentication/ldap/app/src/LDAPModuleManager.mjs @@ -30,7 +30,7 @@ const LDAPModuleManager = { searchBase: process.env.OVERLEAF_LDAP_SEARCH_BASE, searchFilter: process.env.OVERLEAF_LDAP_SEARCH_FILTER, searchScope: process.env.OVERLEAF_LDAP_SEARCH_SCOPE || 'sub', - searchAttributes: JSON.parse(process.env.OVERLEAF_LDAP_SEARCH_ATTRIBUTES || '[]'), + searchAttributes: JSON.parse(process.env.OVERLEAF_LDAP_SEARCH_ATTRIBUTES || null), cache: boolFromEnv(process.env.OVERLEAF_LDAP_CACHE), timeout: numFromEnv(process.env.OVERLEAF_LDAP_TIMEOUT), connectTimeout: numFromEnv(process.env.OVERLEAF_LDAP_CONNECT_TIMEOUT),