|
Lines 107-112
Link Here
|
| 107 |
krb5_ccache ccache; |
107 |
krb5_ccache ccache; |
| 108 |
krb5_error_code problem; |
108 |
krb5_error_code problem; |
| 109 |
krb5_principal princ; |
109 |
krb5_principal princ; |
|
|
110 |
const char *ccache_name, *ccache_type; |
| 110 |
OM_uint32 maj_status, min_status; |
111 |
OM_uint32 maj_status, min_status; |
| 111 |
|
112 |
|
| 112 |
if (client->creds == NULL) { |
113 |
if (client->creds == NULL) { |
|
Lines 176-184
Link Here
|
| 176 |
return; |
177 |
return; |
| 177 |
} |
178 |
} |
| 178 |
|
179 |
|
| 179 |
client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache)); |
180 |
ccache_type = krb5_cc_get_type(krb_context, ccache); |
|
|
181 |
ccache_name = krb5_cc_get_name(krb_context, ccache); |
| 182 |
if (strcmp(ccache_type, "FILE") == 0) |
| 183 |
client->store.filename = xstrdup(ccache_name); |
| 180 |
client->store.envvar = "KRB5CCNAME"; |
184 |
client->store.envvar = "KRB5CCNAME"; |
| 181 |
client->store.envval = xstrdup(client->store.filename); |
185 |
client->store.envval = xmalloc(strlen(ccache_type)+strlen(ccache_name)+2); |
|
|
186 |
sprintf(client->store.envval, "%s:%s", ccache_type, ccache_name); |
| 182 |
|
187 |
|
| 183 |
#ifdef USE_PAM |
188 |
#ifdef USE_PAM |
| 184 |
if (options.use_pam) |
189 |
if (options.use_pam) |