1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

lib:krb5_wrap: Fix references to incorrect function names

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-08-16 09:46:49 +12:00 committed by Andrew Bartlett
parent 02b546778f
commit d608dc175e

View File

@ -1441,7 +1441,7 @@ krb5_error_code smb_krb5_kt_open_relative(krb5_context context,
return krb5_kt_default(context, keytab); return krb5_kt_default(context, keytab);
} }
mem_ctx = talloc_init("smb_krb5_open_keytab"); mem_ctx = talloc_init("smb_krb5_kt_open_relative");
if (!mem_ctx) { if (!mem_ctx) {
return ENOMEM; return ENOMEM;
} }
@ -1482,7 +1482,7 @@ krb5_error_code smb_krb5_kt_open_relative(krb5_context context,
goto out; goto out;
} }
DEBUG(10,("smb_krb5_open_keytab: krb5_kt_default_name returned %s\n", keytab_string)); DBG_DEBUG("krb5_kt_default_name returned %s\n", keytab_string);
tmp = talloc_strdup(mem_ctx, keytab_string); tmp = talloc_strdup(mem_ctx, keytab_string);
if (!tmp) { if (!tmp) {
@ -1535,7 +1535,7 @@ krb5_error_code smb_krb5_kt_open_relative(krb5_context context,
} }
resolve: resolve:
DEBUG(10,("smb_krb5_open_keytab: resolving: %s\n", tmp)); DBG_DEBUG("resolving: %s\n", tmp);
ret = krb5_kt_resolve(context, tmp, keytab); ret = krb5_kt_resolve(context, tmp, keytab);
out: out:
@ -2668,10 +2668,9 @@ krb5_error_code smb_krb5_kinit_s4u2_ccache(krb5_context ctx,
if (code != 0) { if (code != 0) {
ip = NULL; ip = NULL;
} }
DEBUG(1, ("smb_krb5_kinit_password_cache: " DBG_WARNING("KDC returned self principal[%s] while impersonating [%s]\n",
"KDC returned self principal[%s] while impersonating [%s]\n", sp?sp:"<no memory>",
sp?sp:"<no memory>", ip?ip:"<no memory>");
ip?ip:"<no memory>"));
SAFE_FREE(sp); SAFE_FREE(sp);
SAFE_FREE(ip); SAFE_FREE(ip);
@ -2698,10 +2697,9 @@ krb5_error_code smb_krb5_kinit_s4u2_ccache(krb5_context ctx,
if (code != 0) { if (code != 0) {
ep = NULL; ep = NULL;
} }
DEBUG(1, ("smb_krb5_kinit_password_cache: " DBG_WARNING("KDC returned wrong principal[%s] we expected [%s]\n",
"KDC returned wrong principal[%s] we expected [%s]\n", sp?sp:"<no memory>",
sp?sp:"<no memory>", ep?ep:"<no memory>");
ep?ep:"<no memory>"));
SAFE_FREE(sp); SAFE_FREE(sp);
SAFE_FREE(ep); SAFE_FREE(ep);