diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/kerberos.c | 4 |
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); |