From e7a24374d97e1d1c32d3e18561a20e8c5e6319ec Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Tue, 9 Oct 2012 19:02:22 +0200 Subject: Collect krb5 trace on high debug levels If the debug level contains SSSDBG_TRACE_ALL, then the logs would also include tracing information from libkrb5. https://fedorahosted.org/sssd/ticket/1539 --- src/util/sss_krb5.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/util/sss_krb5.c') diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c index cce8d902..0a80f23a 100644 --- a/src/util/sss_krb5.c +++ b/src/util/sss_krb5.c @@ -963,3 +963,15 @@ sss_krb5_residual_check_type(const char *full_location, return sss_krb5_residual_by_type(full_location, type); } + +void +sss_child_krb5_trace_cb(krb5_context context, + const struct krb5_trace_info *info, void *data) +{ + if (info == NULL) { + /* Null info means destroy the callback data. */ + return; + } + + DEBUG(SSSDBG_TRACE_ALL, ("%s\n", info->message)); +} -- cgit