put the winbindd krb5 credentials cache in the lock directory
authorAndrew Tridgell <tridge@samba.org>
Thu, 6 Dec 2001 07:33:35 +0000 (07:33 +0000)
committerAndrew 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

index c494016f9823e34b12ab40d77c7ffca76d08fce6..19e8ffdc005141e48e8194752811bc803defb92e 100644 (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);