From 61944e81ba72e9eb98aeec74df84bfe8167b32cc Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Sat, 13 Apr 1996 03:42:50 +0000 Subject: [PATCH] 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 --- src/appl/telnet/libtelnet/ChangeLog | 5 +++++ src/appl/telnet/libtelnet/forward.c | 12 +----------- 2 files changed, 6 insertions(+), 11 deletions(-) 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)) -- 2.26.2