client: Add kerberos tracing
authorSwen Schillig <swen@linux.ibm.com>
Wed, 5 Dec 2018 10:06:20 +0000 (11:06 +0100)
committerChristof Schmitt <cs@samba.org>
Wed, 19 Dec 2018 20:49:29 +0000 (21:49 +0100)
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>
source3/client/smbspool.c

index 58ce6c56177adcd0c0da8ec4696c44418feddf2e..4f312a6d2949efd02537bf73a033977af2b41657 100644 (file)
@@ -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;
        }