diff options
author | Swen Schillig <swen@linux.ibm.com> | 2018-12-05 11:44:24 +0100 |
---|---|---|
committer | Christof Schmitt <cs@samba.org> | 2018-12-19 21:49:29 +0100 |
commit | 5eefb0885c935854fd3ddc1fcbab2c456745ee0f (patch) | |
tree | 12e04356ba772408edc15d76cc35a04d67e6a8ac /source3/utils | |
parent | bf67593892402fc469ecb7930795dafe273e60e7 (diff) | |
download | samba-5eefb0885c935854fd3ddc1fcbab2c456745ee0f.tar.gz |
utils: 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/utils')
-rw-r--r-- | source3/utils/net_lookup.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/utils/net_lookup.c b/source3/utils/net_lookup.c index df047f617e7..fb9c31c4198 100644 --- a/source3/utils/net_lookup.c +++ b/source3/utils/net_lookup.c @@ -286,11 +286,10 @@ static int net_lookup_kdc(struct net_context *c, int argc, const char **argv) int i; NTSTATUS status; - initialize_krb5_error_table(); - rc = krb5_init_context(&ctx); + rc = smb_krb5_init_context_common(&ctx); if (rc) { - DEBUG(1,("krb5_init_context failed (%s)\n", - error_message(rc))); + DBG_ERR("kerberos init context failed (%s)\n", + error_message(rc)); return -1; } |