[4699] in Kerberos
"ECHO" Problems with V5 telnetd under ultrix 4.3
daemon@ATHENA.MIT.EDU (Tad Hunt)
Tue Feb 28 19:57:34 1995
To: kerberos@MIT.EDU
Date: Tue, 28 Feb 1995 18:47:52 -0500
From: Tad Hunt <tad@mail.csh.rit.edu>
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-Description: "Message"
Greetings. I hope this is the right place to mail this kind of thing
to. If not, you have my apologies, and I would appreciate a pointer in the
proper direction...
I recently grabbed the krb5.src.B4-3.tar.gz package from
athena-dist.mit.edu to build and install on our decstation 5000's.
The configuration and build occured with nary a problem. However there are
a couple of runtime issues.
I'm hoping that someone can let me know if these problems have been
encountered before. If so a pointer to the correct solution would be
helpful (I didn't seem to find any help in the web FAQ...) If not,
I would appreciate pointers on what I may have done wrong.
Thanks!
Tad Hunt
(a) CSH System Admin Type
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-Description: "Problem/Solution Report"
OS/Machine: ULTRIX mcp.csh.rit.edu 4.3 0 RISC / DecStation 5000/125
Compiler: gcc version 2.6.3
make: GNU Make version 3.72.1
Package: directory: athena-dist.mit.edu:/pub/kerberos/dist/940615/
distributions: krb5.src.B4-3.tar.gz, krb5.crypto.B4-3.tar.gz
Other: (need anything else?)
Problems:
1. Somewhere, between the telnetd(8) and login.krb5(1) executables,
ECHO and CRMOD was not being set. This meant that I had to
login blindly, using ctrl-j in place of <return>.
After I got to a shell prompt, "stty sane<ctrl-j>" fixed the
problem...
2. Somewhere between krlogind(8) and login.krb5, there is a lost
byte. The effect of this problem is that I don't get any output
from the (/krb5/bin/)rlogin(1)'d host until I enter a "ctrl-j"; at
which point everything is happy happy...
Solutions:
1. I spent many hours tracing telnetd options negotiation with
the telnet(1) client. It seems as though telnetd ultimately
notifies the client "I will do echo" (telnetd.c: lines 1018-1024)
but leaves configuration of the pty to the login program that
it execv(2)'s. Login.krb5 only configures the pty with a call to
the function "doremoteterm()" if at least one of the following
command line options are set: "-r", "-k", "-K", "-e". Telnetd
does not set any of these particular command line options, therefore
the pty is never initialized.
My interm solution is to "doremoteterm(&tc)" (in bsd/login.c, about
line 398) regardless of the command line options.
I am uncomfortable with this solution because it violates
the whole point of putting the if statement around the
doremoteterm(&tc) call in the first place, but I don't know why
that if statement exists at all.
2. I have not solved problem #2 yet, but I'm working on it, and will
let you know my solution as soon as I have one :-)
------- =_aaaaaaaaaa0--