return code;
}
-krb5_error_code kerberos_kinit_password_cc(krb5_context ctx, krb5_ccache cc,
- krb5_principal principal,
- const char *password,
- const char *target_service,
- krb5_get_init_creds_opt *krb_options,
- time_t *expire_time,
- time_t *kdc_time)
+krb5_error_code smb_krb5_kinit_password_ccache(krb5_context ctx,
+ krb5_ccache cc,
+ krb5_principal principal,
+ const char *password,
+ const char *target_service,
+ krb5_get_init_creds_opt *krb_options,
+ time_t *expire_time,
+ time_t *kdc_time)
{
krb5_error_code code = 0;
krb5_creds my_creds;
if (code != 0) {
ip = NULL;
}
- DEBUG(1, ("kerberos_kinit_password_cc: "
+ DEBUG(1, ("smb_krb5_kinit_password_cache: "
"KDC returned self principal[%s] while impersonating [%s]\n",
sp?sp:"<no memory>",
ip?ip:"<no memory>"));
if (code != 0) {
ep = NULL;
}
- DEBUG(1, ("kerberos_kinit_password_cc: "
+ DEBUG(1, ("smb_krb5_kinit_password_cache: "
"KDC returned wrong principal[%s] we expected [%s]\n",
sp?sp:"<no memory>",
ep?ep:"<no memory>"));
krb5_get_init_creds_opt *krb_options,
time_t *expire_time,
time_t *kdc_time);
-krb5_error_code kerberos_kinit_password_cc(krb5_context ctx,
- krb5_ccache cc,
- krb5_principal principal,
- const char *password,
- const char *target_service,
- krb5_get_init_creds_opt *krb_options,
- time_t *expire_time,
- time_t *kdc_time);
+krb5_error_code smb_krb5_kinit_password_ccache(krb5_context ctx,
+ krb5_ccache cc,
+ krb5_principal principal,
+ const char *password,
+ const char *target_service,
+ krb5_get_init_creds_opt *krb_options,
+ time_t *expire_time,
+ time_t *kdc_time);
#ifdef SAMBA4_USES_HEIMDAL
krb5_error_code kerberos_kinit_s4u2_cc(krb5_context ctx,
krb5_ccache store_cc,
return EINVAL;
#endif
} else {
- ret = kerberos_kinit_password_cc(
- smb_krb5_context->krb5_context,
- ccache, princ, password,
- target_service,
- krb_options, NULL, &kdc_time);
+ ret = smb_krb5_kinit_password_ccache(smb_krb5_context->krb5_context,
+ ccache,
+ princ,
+ password,
+ target_service,
+ krb_options,
+ NULL,
+ &kdc_time);
}
} else if (impersonate_principal) {
talloc_free(mem_ctx);