From e724dc9a60b488ed2bfa9ca87cdaaae86655b3ee Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 10 Mar 2006 13:12:38 +0000 Subject: r14145: Add missing WITH_KCM hunks from my local tree. Guenther (This used to be commit 977079a0583497255fbd4a48de52ebd404710b62) --- source3/nsswitch/winbindd_ads.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/nsswitch') 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) { -- cgit