From 766d43105fd4f15fdc7be9c236f14f237cf7f6a6 Mon Sep 17 00:00:00 2001 From: Zhanna Tsitkov Date: Fri, 3 Feb 2012 19:22:44 +0000 Subject: Added a new trace logging message TRACE_PROFILE_ERR to improve the diagnostics of the potential misconfiguration. Added profile_get_(string/integer/boolean)_nodef functions to the profile library to get the typed values from the configuration files (without setting these values to the defaults). Used TRACE_PROFILE_ERR for the configuration diagnostics in krb5_init_context_profile API. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25669 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/k5-trace.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/include/k5-trace.h') diff --git a/src/include/k5-trace.h b/src/include/k5-trace.h index 926c523bc6..8c5f521099 100644 --- a/src/include/k5-trace.h +++ b/src/include/k5-trace.h @@ -371,5 +371,8 @@ TRACE(c, (c, "Requesting TGT {princ} using TGT {princ}", next, cur)) #define TRACE_TKT_CREDS_WRONG_ENCTYPE(c) \ TRACE(c, (c, "Retrying TGS request with desired service ticket enctypes")) +#define TRACE_PROFILE_ERR(c,subsection, section, retval) \ + TRACE(c, (c, "Bad value of {str} from [{str}] in conf file: {kerr}", \ + subsection, section, retval)) #endif /* K5_TRACE_H */ -- cgit