version 1.19, 2006/08/03 03:34:41 |
version 1.20, 2013/07/20 01:55:13 |
|
|
{ |
{ |
krb5_error_code problem; |
krb5_error_code problem; |
krb5_ccache ccache = NULL; |
krb5_ccache ccache = NULL; |
|
const char *errmsg; |
|
|
temporarily_use_uid(authctxt->pw); |
temporarily_use_uid(authctxt->pw); |
|
|
|
|
if (problem) |
if (problem) |
goto out; |
goto out; |
|
|
problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_mcc_ops, &ccache); |
problem = krb5_cc_new_unique(authctxt->krb5_ctx, |
|
krb5_mcc_ops.prefix, NULL, &ccache); |
if (problem) |
if (problem) |
goto out; |
goto out; |
|
|
|
|
if (problem) |
if (problem) |
goto out; |
goto out; |
|
|
problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_fcc_ops, |
problem = krb5_cc_new_unique(authctxt->krb5_ctx, |
&authctxt->krb5_fwd_ccache); |
krb5_fcc_ops.prefix, NULL, &authctxt->krb5_fwd_ccache); |
if (problem) |
if (problem) |
goto out; |
goto out; |
|
|
|
|
if (ccache) |
if (ccache) |
krb5_cc_destroy(authctxt->krb5_ctx, ccache); |
krb5_cc_destroy(authctxt->krb5_ctx, ccache); |
|
|
if (authctxt->krb5_ctx != NULL) |
if (authctxt->krb5_ctx != NULL) { |
|
errmsg = krb5_get_error_message(authctxt->krb5_ctx, |
|
problem); |
debug("Kerberos password authentication failed: %s", |
debug("Kerberos password authentication failed: %s", |
krb5_get_err_text(authctxt->krb5_ctx, problem)); |
errmsg); |
else |
krb5_free_error_message(authctxt->krb5_ctx, errmsg); |
|
} else |
debug("Kerberos password authentication failed: %d", |
debug("Kerberos password authentication failed: %d", |
problem); |
problem); |
|
|