Lines 2061-2088
Link Here
|
2061 |
return ret; |
2061 |
return ret; |
2062 |
} |
2062 |
} |
2063 |
|
2063 |
|
2064 |
static int |
|
|
2065 |
have_rcache_type(const char *type) |
2066 |
{ |
2067 |
krb5_error_code ret; |
2068 |
krb5_context context; |
2069 |
krb5_rcache id = NULL; |
2070 |
int found; |
2071 |
|
2072 |
ret = krb5_init_context(&context); |
2073 |
if (ret) |
2074 |
return 0; |
2075 |
|
2076 |
ret = krb5_rc_resolve_full(context, &id, "none:"); |
2077 |
found = (ret == 0); |
2078 |
|
2079 |
if (ret == 0) |
2080 |
krb5_rc_destroy(context, id); |
2081 |
krb5_free_context(context); |
2082 |
|
2083 |
return found; |
2084 |
} |
2085 |
|
2086 |
/*************************************************************************** |
2064 |
/*************************************************************************** |
2087 |
Module Setup/Configuration |
2065 |
Module Setup/Configuration |
2088 |
***************************************************************************/ |
2066 |
***************************************************************************/ |
Lines 2143-2149
Link Here
|
2143 |
#ifndef HEIMDAL |
2121 |
#ifndef HEIMDAL |
2144 |
/* Suppress the MIT replay cache. Requires MIT Kerberos 1.4.0 or later. |
2122 |
/* Suppress the MIT replay cache. Requires MIT Kerberos 1.4.0 or later. |
2145 |
1.3.x are covered by the hack overiding the replay calls */ |
2123 |
1.3.x are covered by the hack overiding the replay calls */ |
2146 |
if (getenv("KRB5RCACHETYPE") == NULL && have_rcache_type("none")) |
2124 |
if (getenv("KRB5RCACHETYPE") == NULL) |
2147 |
putenv(strdup("KRB5RCACHETYPE=none")); |
2125 |
putenv(strdup("KRB5RCACHETYPE=none")); |
2148 |
#endif |
2126 |
#endif |
2149 |
} |
2127 |
} |
Lines 2185-2191
Link Here
|
2185 |
#ifndef HEIMDAL |
2163 |
#ifndef HEIMDAL |
2186 |
/* Suppress the MIT replay cache. Requires MIT Kerberos 1.4.0 or later. |
2164 |
/* Suppress the MIT replay cache. Requires MIT Kerberos 1.4.0 or later. |
2187 |
1.3.x are covered by the hack overiding the replay calls */ |
2165 |
1.3.x are covered by the hack overiding the replay calls */ |
2188 |
if (getenv("KRB5RCACHETYPE") == NULL && have_rcache_type("none")) |
2166 |
if (getenv("KRB5RCACHETYPE") == NULL) |
2189 |
putenv(strdup("KRB5RCACHETYPE=none")); |
2167 |
putenv(strdup("KRB5RCACHETYPE=none")); |
2190 |
#endif |
2168 |
#endif |
2191 |
#ifdef STANDARD20_MODULE_STUFF |
2169 |
#ifdef STANDARD20_MODULE_STUFF |