summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-06 07:33:35 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-06 07:33:35 +0000
commit44384354d822e8df2495a68c358201a7833b20bb (patch)
tree6719ba7224f20bd2655600d9f08615805c53f540 /source3
parent94dd5cded7921da779fdeffe0e829eaaf2f4984d (diff)
downloadsamba-44384354d822e8df2495a68c358201a7833b20bb.tar.gz
samba-44384354d822e8df2495a68c358201a7833b20bb.tar.bz2
samba-44384354d822e8df2495a68c358201a7833b20bb.zip
put the winbindd krb5 credentials cache in the lock directory
this prevents it clobbering the users cache (This used to be commit 3de552f365373de85298dbe911143e036805f9ea)
Diffstat (limited to 'source3')
-rw-r--r--source3/libads/kerberos.c4
1 files changed, 4 insertions, 0 deletions
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);