+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.
*/
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;
}
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);