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:
parent
f34cac3b31
commit
3de552f365
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user