git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f34cac3
)
put the winbindd krb5 credentials cache in the lock directory
author
Andrew Tridgell
<tridge@samba.org>
Thu, 6 Dec 2001 07:33:35 +0000
(07:33 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 6 Dec 2001 07:33:35 +0000
(07:33 +0000)
this prevents it clobbering the users cache
source/libads/kerberos.c
patch
|
blob
|
history
diff --git
a/source/libads/kerberos.c
b/source/libads/kerberos.c
index c494016f9823e34b12ab40d77c7ffca76d08fce6..19e8ffdc005141e48e8194752811bc803defb92e 100644
(file)
--- a/
source/libads/kerberos.c
+++ b/
source/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);