summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2006-03-10 13:12:38 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:13 -0500
commite724dc9a60b488ed2bfa9ca87cdaaae86655b3ee (patch)
tree19c0cf1d94455bea37f87df7d3b7a8191ab1d3d0 /source3/nsswitch
parente443866f76e060d908e5c48588468c14f37d4abc (diff)
downloadsamba-e724dc9a60b488ed2bfa9ca87cdaaae86655b3ee.tar.gz
samba-e724dc9a60b488ed2bfa9ca87cdaaae86655b3ee.tar.bz2
samba-e724dc9a60b488ed2bfa9ca87cdaaae86655b3ee.zip
r14145: Add missing WITH_KCM hunks from my local tree.
Guenther (This used to be commit 977079a0583497255fbd4a48de52ebd404710b62)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_ads.c4
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) {