From patchwork Tue Jun 7 08:19:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: marcel@linux-ng.de X-Patchwork-Id: 12871504 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C82A8C43334 for ; Tue, 7 Jun 2022 08:19:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238125AbiFGITm (ORCPT ); Tue, 7 Jun 2022 04:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238118AbiFGITm (ORCPT ); Tue, 7 Jun 2022 04:19:42 -0400 X-Greylist: delayed 52647 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 07 Jun 2022 01:19:39 PDT Received: from mail.linux-ng.de (srv.linux-ng.de [IPv6:2a01:4f8:160:92e6::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E70152CE04 for ; Tue, 7 Jun 2022 01:19:39 -0700 (PDT) Received: from rpi4.linux-ng.de (unknown [192.168.1.79]) by mail.linux-ng.de (Postfix) with ESMTPS id A7FED83DE6D4; Tue, 7 Jun 2022 10:19:38 +0200 (CEST) Received: by rpi4.linux-ng.de (Postfix, from userid 1000) id 7262BBBEC0; Tue, 7 Jun 2022 10:19:38 +0200 (CEST) From: marcel@linux-ng.de To: linux-nfs@vger.kernel.org Cc: Marcel Ritter Subject: [PATCH 2/3] cifs-utils/svcgssd: Display principal if set Date: Tue, 7 Jun 2022 10:19:08 +0200 Message-Id: <20220607081909.1216287-2-marcel@linux-ng.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220607081909.1216287-1-marcel@linux-ng.de> References: <20220607081909.1216287-1-marcel@linux-ng.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Marcel Ritter It's a little irritating to only see the template "<...>@<...>" if you set a specific principal name. So let's show it (if set). --- utils/gssd/svcgssd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c index a242b789..ce78d8f7 100644 --- a/utils/gssd/svcgssd.c +++ b/utils/gssd/svcgssd.c @@ -295,9 +295,9 @@ main(int argc, char *argv[]) (const gss_OID)GSS_C_NT_HOSTBASED_SERVICE); if (status == FALSE) { printerr(0, "unable to obtain root (machine) credentials\n"); - printerr(0, "do you have a keytab entry for " - "nfs/@ in " - "/etc/krb5.keytab?\n"); + printerr(0, "do you have a keytab entry for %s in" + "/etc/krb5.keytab?\n", + principal ? principal : "nfs/@"); exit(1); } } else {