diff options
author | Kevin Coffman <kwc@citi.umich.edu> | 2009-01-05 14:07:05 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-01-05 14:07:05 -0500 |
commit | 09c7ad1cd9c5ca2fc46631a0057d47309abc8706 (patch) | |
tree | 905ba6be74ed2305c930aa08d216b3f85a025060 /utils/gssd/krb5_util.c | |
parent | 6e3f696e788a56f30b5b3f8250647fe4cd63c884 (diff) | |
download | nfs-utils-09c7ad1cd9c5ca2fc46631a0057d47309abc8706.tar.gz nfs-utils-09c7ad1cd9c5ca2fc46631a0057d47309abc8706.tar.xz nfs-utils-09c7ad1cd9c5ca2fc46631a0057d47309abc8706.zip |
gssd: By default, don't spam syslog when users' credentials expire
Change the priority of "common" log messages so that syslog doesn't get
slammed/spammed when users' credentials expire, or there is another
common
problem which would cause error messages for all context creation
requests.
Note that this will now require that gssd or svcgssd option "-v" is used
to
debug these common cases.
Original patch from Andrew Pollock <apollock@google.com>.
Signed-off-by: Kevin Coffman <kwc@citi.umich.edu>
Signed-off-by: Steve Dickson <steved@redhat.com>
CC: Andrew Pollock <apollock@google.com>
Diffstat (limited to 'utils/gssd/krb5_util.c')
-rw-r--r-- | utils/gssd/krb5_util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/gssd/krb5_util.c b/utils/gssd/krb5_util.c index 77814bc..d4ee631 100644 --- a/utils/gssd/krb5_util.c +++ b/utils/gssd/krb5_util.c @@ -399,7 +399,7 @@ gssd_get_single_krb5_cred(krb5_context context, goto out; } if (krb5_get_init_creds_opt_set_addressless(context, init_opts, 1)) - printerr(0, "WARNING: Unable to set option for addressless " + printerr(1, "WARNING: Unable to set option for addressless " "tickets. May have problems behind a NAT.\n"); #ifdef TEST_SHORT_LIFETIME /* set a short lifetime (for debugging only!) */ @@ -422,7 +422,7 @@ gssd_get_single_krb5_cred(krb5_context context, if ((code = krb5_get_init_creds_keytab(context, &my_creds, ple->princ, kt, 0, NULL, opts))) { - printerr(0, "WARNING: %s while getting initial ticket for " + printerr(1, "WARNING: %s while getting initial ticket for " "principal '%s' using keytab '%s'\n", gssd_k5_err_msg(context, code), pname ? pname : "<unparsable>", kt_name); @@ -632,7 +632,7 @@ get_full_hostname(const char *inhost, char *outhost, int outhostlen) /* Get full target hostname */ retval = getaddrinfo(inhost, NULL, &hints, &addrs); if (retval) { - printerr(0, "%s while getting full hostname for '%s'\n", + printerr(1, "%s while getting full hostname for '%s'\n", gai_strerror(retval), inhost); goto out; } |