nsswitch: Fix username in wbinfo -K output
authorAndreas Schneider <asn@samba.org>
Wed, 15 Jan 2020 14:30:24 +0000 (15:30 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 24 Jan 2020 15:46:42 +0000 (15:46 +0000)
We should not print the password if specified via the command line.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
nsswitch/wbinfo.c

index ae89f876a9d92a005677bf29a61bc65fc8f664df..cd89bb0bddcfc6fac2eb23179ac16eff08f3d52e 100644 (file)
@@ -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) {