summaryrefslogtreecommitdiffstats
path: root/src/util/sss_krb5.h
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2012-04-04 06:33:11 -0700
committerStephen Gallagher <sgallagh@redhat.com>2012-04-05 15:21:34 -0700
commitc87a579a23b27e65ae956bc42cf0a247f2ca0baf (patch)
tree71756a8a898322d4e55d96e820e07d9ab5d55fce /src/util/sss_krb5.h
parent4ddfec6b995d6673dad93cf3dd849550dde1594c (diff)
downloadsssd-c87a579a23b27e65ae956bc42cf0a247f2ca0baf.tar.gz
sssd-c87a579a23b27e65ae956bc42cf0a247f2ca0baf.tar.xz
sssd-c87a579a23b27e65ae956bc42cf0a247f2ca0baf.zip
Clean up log messages about keytab_name
There were many places where we were printing (null) to the logs because a NULL keytab name tells libkrb5 to use its configured default instead of a particular path. This patch should clean up all uses of this to print "default" in the logs. https://fedorahosted.org/sssd/ticket/1288
Diffstat (limited to 'src/util/sss_krb5.h')
-rw-r--r--src/util/sss_krb5.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/sss_krb5.h b/src/util/sss_krb5.h
index 52e6c5d48..50c4b696f 100644
--- a/src/util/sss_krb5.h
+++ b/src/util/sss_krb5.h
@@ -34,6 +34,8 @@
#include "util/util.h"
+#define KEYTAB_CLEAN_NAME keytab_name ? keytab_name : "default"
+
const char * KRB5_CALLCONV sss_krb5_get_error_message (krb5_context,
krb5_error_code);