+Fri Apr 12 23:36:01 1996 Richard Basch <basch@lehman.com>
+
+ * forward.c (rd_and_store_for_creds): Consistency with the
+ krlogind forwarded credentials cache naming scheme - krb5cc_p<pid>
+
Thu Apr 11 21:45:21 1996 Richard Basch <basch@lehman.com>
* forward.c (rd_and_store_for_creds): If we are going to use a
if (retval = krb5_rd_cred(context, auth_context, inbuf, &creds, NULL))
return(retval);
- if (*line && (tty = strchr(line, '/')) && (tty = strchr(tty+1, '/'))) {
- ++tty;
- sprintf(ccname, "FILE:/tmp/krb5cc_%s", tty);
- while (tty = strchr(tty, '/')) {
- tty++;
- *((char *)strrchr(ccname, '/')) = '_';
- }
- } else
- /* since default will be based on uid and we haven't changed yet */
- sprintf(ccname, "FILE:/tmp/krb5cc_%d", pwd->pw_uid);
-
+ sprintf(ccname, "FILE:/tmp/krb5cc_p%d", getpid());
setenv(KRB5_ENV_CCNAME, ccname, 1);
if (retval = krb5_cc_resolve(context, ccname, &ccache))