summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorSwen Schillig <swen@linux.ibm.com>2018-12-05 11:06:20 +0100
committerChristof Schmitt <cs@samba.org>2018-12-19 21:49:29 +0100
commit2cc561fbbf157ce9bddb702d46f5dba1bf46311b (patch)
tree1e9a349f3f67b8bcf5be1b913140d06b75f54bb3 /source3/client
parent5056b9622416311535578a481af800afe8c8c729 (diff)
downloadsamba-2cc561fbbf157ce9bddb702d46f5dba1bf46311b.tar.gz
client: Add kerberos tracing
Replace kerberos context initialization from raw krb5_init_context() to smb_krb5_init_context_basic() which is adding common tracing as well. Signed-off-by: Swen Schillig <swen@linux.ibm.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org>
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/smbspool.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c
index 58ce6c56177..4f312a6d294 100644
--- a/source3/client/smbspool.c
+++ b/source3/client/smbspool.c
@@ -28,6 +28,7 @@
#include "system/kerberos.h"
#include "libsmb/libsmb.h"
#include "lib/param/param.h"
+#include "lib/krb5_wrap/krb5_samba.h"
/*
* Starting with CUPS 1.3, Kerberos support is provided by cupsd including
@@ -516,8 +517,10 @@ static bool kerberos_ccache_is_valid(void) {
krb5_ccache ccache = NULL;
krb5_error_code code;
- code = krb5_init_context(&ctx);
+ code = smb_krb5_init_context_common(&ctx);
if (code != 0) {
+ DBG_ERR("kerberos init context failed (%s)\n",
+ error_message(code));
return false;
}