From 96f319e0de21b0479a4f9be23e8a2c1d2709d6f6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 15 Jan 2020 15:30:24 +0100 Subject: nsswitch: Fix username in wbinfo -K output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should not print the password if specified via the command line. Signed-off-by: Andreas Schneider Reviewed-by: Günther Deschner --- nsswitch/wbinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nsswitch/wbinfo.c') diff --git a/nsswitch/wbinfo.c b/nsswitch/wbinfo.c index ae89f876a9d..cd89bb0bddc 100644 --- a/nsswitch/wbinfo.c +++ b/nsswitch/wbinfo.c @@ -1680,7 +1680,7 @@ static bool wbinfo_auth_krb5(char *username, const char *cctype, uint32_t flags) d_printf("plaintext kerberos password authentication for [%s] %s " "(requesting cctype: %s)\n", - username, WBC_ERROR_IS_OK(wbc_status) ? "succeeded" : "failed", + name, WBC_ERROR_IS_OK(wbc_status) ? "succeeded" : "failed", cctype); if (error) { -- cgit v1.2.1