diff options
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/winbindd_ads.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c index 179659f86f..721c345aa5 100644 --- a/source3/nsswitch/winbindd_ads.c +++ b/source3/nsswitch/winbindd_ads.c @@ -59,7 +59,11 @@ static ADS_STRUCT *ads_cached_connection(struct winbindd_domain *domain) } /* we don't want this to affect the users ccache */ +#ifdef WITH_KCM + setenv("KRB5CCNAME", "KCM:SYSTEM", 1); +#else setenv("KRB5CCNAME", "MEMORY:winbind_ccache", 1); +#endif ads = ads_init(domain->alt_name, domain->name, NULL); if (!ads) { |