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:
parent
0b0a22ddad
commit
357fe04bd4
@ -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");
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user