From: Andreas Schneider Date: Wed, 15 Jan 2020 14:30:24 +0000 (+0100) Subject: nsswitch: Fix username in wbinfo -K output X-Git-Tag: ldb-2.1.1~245 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96f319e0de21b0479a4f9be23e8a2c1d2709d6f6;p=thirdparty%2Fsamba.git nsswitch: Fix username in wbinfo -K output We should not print the password if specified via the command line. Signed-off-by: Andreas Schneider Reviewed-by: Günther Deschner --- 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) {