From: Ken Raeburn Date: Mon, 21 Feb 2000 21:36:53 +0000 (+0000) Subject: From Bear Giles: X-Git-Tag: krb5-1.2-beta1~64 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8f49ae0ab31aeb50349ac5578c3fe3429cb995e1;p=krb5.git From Bear Giles: * telnetd.c (doit): Provide a more useful error message than "authentication failed" if no authentication was even attempted. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12059 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnetd/ChangeLog b/src/appl/telnet/telnetd/ChangeLog index 41fbd39e2..cd7463648 100644 --- a/src/appl/telnet/telnetd/ChangeLog +++ b/src/appl/telnet/telnetd/ChangeLog @@ -1,3 +1,9 @@ +2000-02-21 Bear Giles + Ken Raeburn + + * telnetd.c (doit): Provide a more useful error message than + "authentication failed" if no authentication was even attempted. + 1999-10-26 Tom Yu * Makefile.in: Clean up usage of CFLAGS, CPPFLAGS, DEFS, DEFINES, diff --git a/src/appl/telnet/telnetd/telnetd.c b/src/appl/telnet/telnetd/telnetd.c index 3c63d5c18..726746967 100644 --- a/src/appl/telnet/telnetd/telnetd.c +++ b/src/appl/telnet/telnetd/telnetd.c @@ -1008,6 +1008,12 @@ pty_init(); level = getterminaltype(user_name); setenv("TERM", *terminaltype ? terminaltype : "network", 1); +#if defined (AUTHENTICATION) + if (user_name[0] == '\0') { + fatal (net, "No authentication provided"); + exit (-1); + } +#endif /* * Start up the login process on the slave side of the terminal */