diff options
| author | Richard Basch <probe@mit.edu> | 1996-04-13 03:42:50 +0000 |
|---|---|---|
| committer | Richard Basch <probe@mit.edu> | 1996-04-13 03:42:50 +0000 |
| commit | 61944e81ba72e9eb98aeec74df84bfe8167b32cc (patch) | |
| tree | c30018fe30e7dcc35cea5528526791a8bee666a7 | |
| parent | 72cd1ee3386c496c1800b2d8d72d12ffc88ecadc (diff) | |
| download | krb5-61944e81ba72e9eb98aeec74df84bfe8167b32cc.tar.gz krb5-61944e81ba72e9eb98aeec74df84bfe8167b32cc.tar.xz krb5-61944e81ba72e9eb98aeec74df84bfe8167b32cc.zip | |
Store the forwarded credentials in /tmp/krb5cc_p<pid> (like krlogind)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7811 dc483132-0cff-0310-8789-dd5450dbe970
| -rw-r--r-- | src/appl/telnet/libtelnet/ChangeLog | 5 | ||||
| -rw-r--r-- | 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 <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 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)) |
