1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

s4: 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>

Autobuild-User(master): Christof Schmitt <cs@samba.org>
Autobuild-Date(master): Thu Dec 20 01:31:17 CET 2018 on sn-devel-144
This commit is contained in:
Swen Schillig 2018-12-05 11:55:09 +01:00 committed by Christof Schmitt
parent 0b0a22ddad
commit 357fe04bd4
2 changed files with 6 additions and 4 deletions

View File

@ -59,10 +59,10 @@ int main (int argc, char **argv)
keytab_name = argv[1];
initialize_krb5_error_table();
ret = krb5_init_context(&context);
ret = smb_krb5_init_context_common(&context);
if (ret) {
DBG_ERR("kerberos init context failed (%s)\n",
error_message(ret));
smb_krb5_err(mem_ctx, context, 1, ret, "krb5_context");
}

View File

@ -327,8 +327,10 @@ static int samba_kdc_kdb_entry_destructor(struct samba_kdc_entry *p)
entry_ex->e_data = NULL;
}
ret = krb5_init_context(&context);
ret = smb_krb5_init_context_common(&context);
if (ret) {
DBG_ERR("kerberos init context failed (%s)\n",
error_message(ret));
return ret;
}