[comp.protocols.tcp-ip] SUMMARY: Porting BSD telnetd to a Sun

jpc@avdms8.msfc.nasa.gov (J. Porter Clark) (06/01/91)

My question was:

>For a number of trivial reasons, I'm trying to compile the BSD 4.3
>telnetd source on a Sun-3 running SunOS 4.1.  Is this possible?  Has
>anybody done this successfully?  Can anybody give me some hints?

As nearly everyone pointed out, I was using the wrong source code.  I
got /pub/telnet.91.03.25.tar.Z from ucbarpa.berkeley.edu, unpacked it,
compiled it, and ran it.  Now I've got a new, improved telnet and
telnetd.  It works great with most machines.

I've had a number of problems with PC's running various packages, so
many that I'm considering abandoning the project.  The problems are
related to telnet terminal option negotiation apparently being
performed incorrectly for unrecognized options (such as AUTHENTICATION
or XDISPLOC) on the PC side.  The bad guys are:

1. PC-NFS telnet 3.0.1.  Not a problem with Sun's telnetd.  I plan to
upgrade to 3.5 in the near future; has anybody tried 3.5 telnet or
"Advanced Telnet" with the BSD telnetd yet?

2. CUTCP telnet V2.2/NFS-A.  Likewise works fine with Sun's telnetd.
Workaround: Use CUTCP's rlogin feature in telnet to go to the host's
rlogind instead, or use the port number feature to go to either rlogind
or the old telnetd at a different port.

I've done enough debugging to convince my (perhaps gullible) self that
the PC side is at fault and that defensive reprogramming on the Sun
side would be difficult and/or violate the RFC's.  It is possible to
strip out the offending telnet options from telnetd.c (I did make it
work that way), but by that time you'll probably be close to Sun's
telnetd in terms of features supported.

An interesting fact: telnet using either 1 or 2 above to
ucbarpa.berkeley.edu WORKS!  Well, I did get a login prompt, anyway; I
don't have an account there.  Does ucbarpa's working version turn off
these options?

Of course, I could be all wrong.

Many thanks and much grateful appreciation to:

karl.kleinpaste@osc.edu (Karl Kleinpaste)
Kim H|glund <shotokan@diku.dk>
Brendan Kehoe <brendan@cs.widener.edu>
hedrick@athos.rutgers.edu (Charles Hedrick)
deraadt@cpsc.ucalgary.ca (Theo de Raadt)
Pekka.Nikander@ngs.fi (Pekka Nikander)
--
J. Porter Clark    jpc@avdms8.msfc.nasa.gov