From 8f49ae0ab31aeb50349ac5578c3fe3429cb995e1 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Mon, 21 Feb 2000 21:36:53 +0000 Subject: [PATCH] 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 --- src/appl/telnet/telnetd/ChangeLog | 6 ++++++ src/appl/telnet/telnetd/telnetd.c | 6 ++++++ 2 files changed, 12 insertions(+) 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 */ -- 2.26.2