summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authorSwen Schillig <swen@linux.ibm.com>2018-12-05 11:38:44 +0100
committerChristof Schmitt <cs@samba.org>2018-12-19 21:49:29 +0100
commit9f33864770ee973ab35da07494c1100f628070be (patch)
tree9d86c86a504c9300b9fc637db02866df51890bb8 /source3/librpc
parent8887a68031070e0d6b93f7283b7ab409977206de (diff)
downloadsamba-9f33864770ee973ab35da07494c1100f628070be.tar.gz
librpc: 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/librpc')
-rw-r--r--source3/librpc/crypto/gse.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/librpc/crypto/gse.c b/source3/librpc/crypto/gse.c
index 2c00ea9bbcb..9a9f4261222 100644
--- a/source3/librpc/crypto/gse.c
+++ b/source3/librpc/crypto/gse.c
@@ -206,12 +206,10 @@ static NTSTATUS gse_context_init(TALLOC_CTX *mem_ctx,
gse_ctx->gss_want_flags |= add_gss_c_flags;
/* Initialize Kerberos Context */
- initialize_krb5_error_table();
-
- k5ret = krb5_init_context(&gse_ctx->k5ctx);
+ k5ret = smb_krb5_init_context_common(&gse_ctx->k5ctx);
if (k5ret) {
- DEBUG(0, ("Failed to initialize kerberos context! (%s)\n",
- error_message(k5ret)));
+ DBG_ERR("kerberos init context failed (%s)\n",
+ error_message(k5ret));
status = NT_STATUS_INTERNAL_ERROR;
goto err_out;
}