[2431] in Kerberos_V5_Development
Re: Krb and AIX4.2
daemon@ATHENA.MIT.EDU (Donn Cave)
Mon Jul 14 16:43:20 1997
In-Reply-To: <33CA85DA.2370@magma.ca>
Date: Mon, 14 Jul 1997 13:46:51 -0800
To: mmessier@magma.ca, krbdev@MIT.EDU
From: Donn Cave <donn@u.washington.edu>
At 3:02 PM -0500 7/14/97, Mike wrote:
| Donn, I send you this 'cause you had a problem with telnetd under AIX
| 4.2 (thanks, you saved me from some sweat! :-), I was wondering if you
| had such trouble has mentionned above? Did you compile the whole
| release or just the telnet deamon??
Yes, I built the whole thing, it's just that most of the fixes that needed
to be done were in telnetd. By the way, once you have it all working,
you may notice some improvement over the software distributed with AIX -
for one thing, the krb5-1.0 telnet doesn't have the idiotic IBM problem of
trying to second-guess the terminal emulation.
There are a couple of other things I've changed. Another AIX telnetd
thing was a tab delay problem that showed up in certain situations, like
"vi" run from "nn". To fix it, I removed the OXTABS c_oflag setting
at about line 970 in sys_term.c, for AIX only.
I also modified the banner handling in telnetd.c. I liked "BSD 4.4",
in a way, but I didn't want to be reminded, so I changed this part to
call uname for the platform part of the banner.
The ftpd program doesn't log correctly, more utmp problems here. This
time, ftpd isn't trying to fill out enough fields in utmp, leading to
some garbage occasionally in the wtmp file. This was more of a problem
under Digital UNIX, but it showed up a couple of times under AIX 4.2.
The fix is to set ut_id, ut_type and ut_pid. I also reversed the ftp
service principals, to prefer "host" over "ftp".
Finally, in login.c, a bunch of changes:
- setenv("PATH", LPATH, 0) instead of 1, so that PATH can be initialized
in /etc/environment.
setenv(tbuf, eq, 1) at about line 1120, same reason. Also changed file
name in fopen() to filename (as passed to function) instead of hard-coded
"/etc/environment".
- deleted system(QUOTAWARN)
- added SIGHUP handler that kills child process group.
| Any comments (help) on the above problem would be very usefull. Are my
| changes right? dangerous? any patch out there??
Your fix is OK.
If this gets to the same people that handle krb5 bug reports - most of
this has been reported, and some of it has been checked into. The
logwtmp.c thing in ftpd I haven't reported yet, nor the OXTABS on
AIX problem.
Donn Cave, University Computing Services, University of Washington
donn@u.washington.edu