diff options
Diffstat (limited to 'auth-krb5.c')
-rw-r--r-- | auth-krb5.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/auth-krb5.c b/auth-krb5.c index 43ee9272f..7c83f597f 100644 --- a/auth-krb5.c +++ b/auth-krb5.c | |||
@@ -97,8 +97,12 @@ auth_krb5_password(Authctxt *authctxt, const char *password) | |||
97 | goto out; | 97 | goto out; |
98 | 98 | ||
99 | #ifdef HEIMDAL | 99 | #ifdef HEIMDAL |
100 | # ifdef HAVE_KRB5_CC_NEW_UNIQUE | ||
100 | problem = krb5_cc_new_unique(authctxt->krb5_ctx, | 101 | problem = krb5_cc_new_unique(authctxt->krb5_ctx, |
101 | krb5_mcc_ops.prefix, NULL, &ccache); | 102 | krb5_mcc_ops.prefix, NULL, &ccache); |
103 | # else | ||
104 | problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_mcc_ops, &ccache); | ||
105 | # endif | ||
102 | if (problem) | 106 | if (problem) |
103 | goto out; | 107 | goto out; |
104 | 108 | ||
@@ -117,8 +121,13 @@ auth_krb5_password(Authctxt *authctxt, const char *password) | |||
117 | if (problem) | 121 | if (problem) |
118 | goto out; | 122 | goto out; |
119 | 123 | ||
124 | # ifdef HAVE_KRB5_CC_NEW_UNIQUE | ||
120 | problem = krb5_cc_new_unique(authctxt->krb5_ctx, | 125 | problem = krb5_cc_new_unique(authctxt->krb5_ctx, |
121 | krb5_fcc_ops.prefix, NULL, &authctxt->krb5_fwd_ccache); | 126 | krb5_fcc_ops.prefix, NULL, &authctxt->krb5_fwd_ccache); |
127 | # else | ||
128 | problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_fcc_ops, | ||
129 | &authctxt->krb5_fwd_ccache); | ||
130 | # endif | ||
122 | if (problem) | 131 | if (problem) |
123 | goto out; | 132 | goto out; |
124 | 133 | ||