From 88f06dc86d1da7003df4fed5127732e8ffa7174a Mon Sep 17 00:00:00 2001 From: Alexandr Dubovikov Date: Tue, 7 Jan 2025 11:56:57 +0100 Subject: [PATCH] Fix code scanning alert no. 25: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 18ed0d3c..b406c52a 100644 --- a/main.go +++ b/main.go @@ -2080,7 +2080,9 @@ func ShowCurrentConfigToConsole() { heputils.Colorize(heputils.ColorRed, "\r\nLDAP:\r\n") - spew.Dump(ldapClient) + sanitizedLdapClient := ldapClient + sanitizedLdapClient.BindPassword = "REDACTED" + spew.Dump(sanitizedLdapClient) }