1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

put the winbindd krb5 credentials cache in the lock directory

this prevents it clobbering the users cache
This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent f34cac3b31
commit 3de552f365

View File

@ -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);