From 44384354d822e8df2495a68c358201a7833b20bb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 6 Dec 2001 07:33:35 +0000 Subject: put the winbindd krb5 credentials cache in the lock directory this prevents it clobbering the users cache (This used to be commit 3de552f365373de85298dbe911143e036805f9ea) --- source3/libads/kerberos.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/libads') diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c index c494016f98..19e8ffdc00 100644 --- a/source3/libads/kerberos.c +++ b/source3/libads/kerberos.c @@ -87,6 +87,10 @@ int ads_kinit_password(ADS_STRUCT *ads) int ret; extern pstring global_myname; fstring myname; + + /* we don't want this to affect the users ccache */ + setenv("KRB5CCNAME", lock_path("winbindd_ccache"), 1); + fstrcpy(myname, global_myname); strlower(myname); asprintf(&s, "HOST/%s@%s", global_myname, ads->realm); -- cgit