From 284d249e0fe58443dafc96fa8be51a2cef4541a0 Mon Sep 17 00:00:00 2001 From: Marcel Ritter Date: Tue, 21 Jun 2022 09:21:36 -0400 Subject: 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 --- utils/gssd/svcgssd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils') 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/@ 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 { -- cgit v1.2.1