From 4ee05a93552f17f5de37b673e38d04f21e108133 Mon Sep 17 00:00:00 2001 From: SeDemal Date: Mon, 9 Sep 2024 16:38:40 +0200 Subject: [PATCH] chore: add extra information in the error logging that may be insecure --- src/utils/auth/ldap.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/auth/ldap.ts b/src/utils/auth/ldap.ts index e8ba1dd0c03..40f0a96d555 100644 --- a/src/utils/auth/ldap.ts +++ b/src/utils/auth/ldap.ts @@ -38,9 +38,9 @@ const ldapLogin = (username: string, password: string) => const client = ldap.createClient({ url: env.AUTH_LDAP_URI, }); - client.bind(username, password, (error, res) => { + client.bind(username, password, (error) => { if (error) { - reject('Invalid username or password'); + reject(`Invalid username or password. ${error.code}-${error.name}:${error.message}`); } else { resolve(client); }