diff options
author | Marcel Ritter <marcel@linux-ng.de> | 2022-06-21 09:21:36 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2022-06-21 09:24:35 -0400 |
commit | 284d249e0fe58443dafc96fa8be51a2cef4541a0 (patch) | |
tree | 246391185bfe4cb6b13adb5e49ca2b8c62507534 | |
parent | 2eabb25d5a43e48e769a0db29956e9f5dc5b5913 (diff) | |
download | nfs-utils-284d249e0fe58443dafc96fa8be51a2cef4541a0.tar.gz |
svcgssd: Display principal if set
It's a little irritating to only see the template "<...>@<...>" if you
set a specific principal name. So let's show it (if set).
Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r-- | utils/gssd/svcgssd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/gssd/svcgssd.c b/utils/gssd/svcgssd.c index a242b78..ce78d8f 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/<your.host>@<YOUR.REALM> in " - "/etc/krb5.keytab?\n"); + printerr(0, "do you have a keytab entry for %s in" + "/etc/krb5.keytab?\n", + principal ? principal : "nfs/<your.host>@<YOUR.REALM>"); exit(1); } } else { |