Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1311075iof; Tue, 7 Jun 2022 03:05:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqI8I3eqUH1XI9MTjSUyyY0joj3zNoA6XUgZDQh86wcxrCZKw6ISNqtYY39VorScqp2Dck X-Received: by 2002:a17:902:e80d:b0:167:5e77:e695 with SMTP id u13-20020a170902e80d00b001675e77e695mr17266586plg.144.1654596348082; Tue, 07 Jun 2022 03:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654596348; cv=none; d=google.com; s=arc-20160816; b=unkycNWDfFgurawIvVHwHOH6z9TE3HkIz+18zM5U0SEi+oowLEJJAy8w/5fZBPkDVZ SAPhTGffrtXA69DxHCUzKjyy9sY4gRYyPKowxVNsqoC6/uME8wQGln9n5M380md5cB6d 07QfUlsjxMFrVyN3Ck5fpQjLsEL6HgvMZaRWKgg6Vo/ecObbiuKQPc4RBhSi7nQnzjuR xMttU7HFPJk2qLXx6gKLhoz9j0keAaHw7umNJ0wcreRQX8z1ll+vsLF6r4uSfAwvpAx4 62z8cTe9OPO3pCvcO/ms+HHfdSB2JiZC/AJPLEFg8LzFFezSSAurEkez7lKcBPgcDXwa yZ9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=YRWDT5lx+8y9XwwYMMpi4809JMqCldeRm541QooAbRo=; b=QynHHL2xHtm04s++ZHi1a4SVrjQO0wXMFshVbUVGLrCdUs4Ima11+kNCRU1GwzFCpa gOUtwN8fcrgzSal1894B99Z7TC/1JvovZEgtE8F6CUAhRiqfIJP750CHwMtQROL8+RGc z3PQDeWfPe2OHghH/osfP4w1Pt9hKljCjVW8S9Yb/A62vgbC9wUyjQsx4BOmYwBZaHTC VfXu7GjjeEVDkcC46c7C3z8Zhf1MHOjTLoqE5m8NA8jdBQ/SNu0peEalcSjpZdunRtNw Mmo7MzlsFCOqTzC+crLw4nYCoSE9Hb54AQpL9c5SNRdNZd80OKFZKsVItnlGTFeoD1Ag HhJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a056a00168600b0050dd63b1f05si28558408pfc.219.2022.06.07.03.05.33; Tue, 07 Jun 2022 03:05:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238125AbiFGITm (ORCPT + 99 others); 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 { -- 2.34.1