diff options
author | Sam Hartman <hartmans@mit.edu> | 1996-04-18 23:03:00 +0000 |
---|---|---|
committer | Sam Hartman <hartmans@mit.edu> | 1996-04-18 23:03:00 +0000 |
commit | ce75df9e32262866845c3eaac01ba03f530508d5 (patch) | |
tree | 0892605671153150a42a40051fadab59e9b1be98 /src/appl | |
parent | 01fa06f7463d2de3bc6a6fb6cd49c064651b2887 (diff) | |
download | krb5-ce75df9e32262866845c3eaac01ba03f530508d5.tar.gz krb5-ce75df9e32262866845c3eaac01ba03f530508d5.tar.xz krb5-ce75df9e32262866845c3eaac01ba03f530508d5.zip |
More option handling changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7839 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl')
-rw-r--r-- | src/appl/telnet/telnetd/ChangeLog | 5 | ||||
-rw-r--r-- | src/appl/telnet/telnetd/state.c | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index 2c7c36b63f..21fa61c27b 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,8 @@ +Thu Apr 18 16:33:42 1996 Sam Hartman <hartmans@mit.edu> + + * state.c (suboption): Don't accept authentication suboptions after authentication negotiation complete. + (envvarok): exclude KRB5_KTNAME and KRB5CCNAME + Tue Apr 16 12:23:02 1996 Sam Hartman <hartmans@mit.edu> * configure.in : Treat HPUX as if it doesn't have streams. diff --git a/src/appl/telnet/telnetd/state.c b/src/appl/telnet/telnetd/state.c index 0f19371ce5..2faed71980 100644 --- a/src/appl/telnet/telnetd/state.c +++ b/src/appl/telnet/telnetd/state.c @@ -1476,10 +1476,12 @@ sb_auth_complete(); */ break; case TELQUAL_IS: - auth_is(subpointer, SB_LEN()); + if (!auth_negotiated) + auth_is(subpointer, SB_LEN()); break; case TELQUAL_NAME: - auth_name(subpointer, SB_LEN()); + if (!auth_negotiated) + auth_name(subpointer, SB_LEN()); break; } break; @@ -1640,11 +1642,12 @@ send_status() } static int envvarok(varp) -char *varp; + char *varp; { if (!strncmp(varp, "LD_", 3) || !strncmp(varp, "_RLD_", 5) || !strncmp(varp, "ELF_LD_", 7) || !strncmp(varp, "AOUT_LD_", 8) || !strcmp(varp, "LIBPATH") || !strcmp(varp, "IFS") || +!strcmp(varp, "KRB5_KTNAME")|| !strcmp(varp, "KRB5CCNAME")|| strchr(varp, '=')) { syslog(LOG_INFO, "Rejected the attempt to modify the environment variable \"%s\"", varp); |