summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2012-05-03 12:33:42 +0300
committerSimo Sorce <idra@samba.org>2012-05-04 16:51:29 +0200
commit822e6794f09ff2440972453adbac38d3efd1c54e (patch)
treec23849c76ebe642df5f09a91e1601ba240256379
parent21d383d04f21755418c755139824cfe7234ff474 (diff)
downloadsamba-822e6794f09ff2440972453adbac38d3efd1c54e.tar.gz
samba-822e6794f09ff2440972453adbac38d3efd1c54e.tar.bz2
samba-822e6794f09ff2440972453adbac38d3efd1c54e.zip
s4:auth/kerberos: don't do tracing in MIT build
Signed-off-by: Simo Sorce <idra@samba.org>
-rw-r--r--source4/auth/kerberos/krb5_init_context.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/source4/auth/kerberos/krb5_init_context.c b/source4/auth/kerberos/krb5_init_context.c
index 9b36ee94f4..e770f1287f 100644
--- a/source4/auth/kerberos/krb5_init_context.c
+++ b/source4/auth/kerberos/krb5_init_context.c
@@ -62,8 +62,6 @@ static krb5_error_code smb_krb5_context_destroy(struct smb_krb5_context *ctx)
krb5_closelog(ctx->krb5_context,
(krb5_log_facility *)ctx->pvt_log_data);
}
-#else
- krb5_set_trace_callback(ctx->krb5_context, NULL, NULL);
#endif
krb5_free_context(ctx->krb5_context);
return 0;
@@ -81,13 +79,6 @@ static void smb_krb5_debug_wrapper(const char *timestr, const char *msg, void *p
{
DEBUG(3, ("Kerberos: %s\n", msg));
}
-#else
-static void smb_krb5_debug_wrapper(krb5_context context,
- const struct krb5_trace_info *info,
- void *cb_data)
-{
- DEBUG(3, ("Kerberos: %s\n", info->message));
-}
#endif
#ifdef SAMBA4_USES_HEIMDAL
@@ -554,14 +545,6 @@ krb5_error_code smb_krb5_init_context(void *parent_ctx,
krb5_set_dns_canonicalize_hostname(kctx,
lpcfg_parm_bool(lp_ctx, NULL, "krb5",
"set_dns_canonicalize", false));
-#else
- ret = krb5_set_trace_callback(kctx, smb_krb5_debug_wrapper, NULL);
- if (ret && ret != KRB5_TRACE_NOSUPP) {
- DEBUG(1, ("krb5_set_trace_callback failed (%s)\n",
- smb_get_krb5_error_message(kctx, ret, tmp_ctx)));
- talloc_free(tmp_ctx);
- return ret;
- }
#endif
talloc_steal(parent_ctx, *smb_krb5_context);
talloc_free(tmp_ctx);