From: Richard Basch Date: Sat, 13 Apr 1996 03:42:50 +0000 (+0000) Subject: Store the forwarded credentials in /tmp/krb5cc_p (like krlogind) X-Git-Tag: krb5-1.0-beta6~207 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=61944e81ba72e9eb98aeec74df84bfe8167b32cc;p=krb5.git Store the forwarded credentials in /tmp/krb5cc_p (like krlogind) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7811 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/libtelnet/ChangeLog b/src/appl/telnet/libtelnet/ChangeLog index 8cb56165c..63835ba61 100644 --- a/src/appl/telnet/libtelnet/ChangeLog +++ b/src/appl/telnet/libtelnet/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 12 23:36:01 1996 Richard Basch + + * forward.c (rd_and_store_for_creds): Consistency with the + krlogind forwarded credentials cache naming scheme - krb5cc_p + Thu Apr 11 21:45:21 1996 Richard Basch * forward.c (rd_and_store_for_creds): If we are going to use a diff --git a/src/appl/telnet/libtelnet/forward.c b/src/appl/telnet/libtelnet/forward.c index 025a134eb..a0ea5b34f 100644 --- a/src/appl/telnet/libtelnet/forward.c +++ b/src/appl/telnet/libtelnet/forward.c @@ -54,17 +54,7 @@ rd_and_store_for_creds(context, auth_context, inbuf, ticket, lusername) 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))