[4179] in Kerberos

home help back first fref pref prev next nref lref last post

Re: telnet/telnetd

daemon@ATHENA.MIT.EDU (Jim.Rees@umich.edu)
Mon Nov 14 15:02:59 1994

To: kerberos@MIT.EDU
Date: 14 Nov 1994 19:25:54 GMT
From: Jim.Rees@umich.edu

In article <9411101548.AA20818@stealth.ctron.com>, rogerj@mailhost.ctron.com (Jeffrey C. Rogers) writes:

  Are there any patches for the kerberos telnet/telnetd (mostly the latter) to 
  work with AIX(3.2.5), HPUX 9, and/or IRIX 5?

I've been building telnet against the dce k5 libraries for aix3.2.5, and
have a Config.local section that I think works.  Here are the important
parts:

		DEFINES=${ODEFS}"-DTERMCAP \
-DAUTHENTICATION -DKRB5 -DDES_ENCRYPTION -DENCRYPTION \
-DDEFAULT_IM='\"\r\nAIX (%h) (%t)\r\n\r\r\n\r\"' -DDIAGNOSTICS -DENV_HACK \
-DOLD_ENVIRON -Dunix -DDCE -D_BSD -D_BSD_INCLUDES -U__STR__" \
		INCLUDES="-I.. -I../krb5/usr/include" \
		LIB_OBJ="getent.o" \
		LIB_SRC="getent.c" \

You'll probably want to drop the -DDCE to build against plain k5.

By the way, where can I get the latest telnet/telnetd?  Mine is almost a
year old, and I can't find it at MIT (although I haven't tried very hard).

If anyone else is building telnet for use with dce security, especially for
aix, I'd like to hear from you.

Oh, and here's a patch for telnetd/sys_term.c:

% diff -c sys_term.c- sys_term.c 
*** sys_term.c- Mon Feb  7 16:28:18 1994
--- sys_term.c  Tue Nov  1 19:19:39 1994
***************
*** 1185,1191 ****
        (void) chmod(line, 0600);
  #endif
  
! # if !defined(CRAY) && (BSD > 43)
        (void) revoke(line);
  # endif
  #if   defined(_SC_CRAY_SECURE_SYS)
--- 1185,1191 ----
        (void) chmod(line, 0600);
  #endif
  
! # if (!defined(CRAY) && (BSD > 43)) || defined(_AIX32)
        (void) revoke(line);
  # endif
  #if   defined(_SC_CRAY_SECURE_SYS)
***************
*** 1217,1223 ****
         * Hangup anybody else using this ttyp, then reopen it for
         * ourselves.
         */
! # if !(defined(CRAY) || defined(__hpux)) && (BSD <= 43) && !defined(STREAMSPTY)
        (void) signal(SIGHUP, SIG_IGN);
        vhangup();
        (void) signal(SIGHUP, SIG_DFL);
--- 1217,1223 ----
         * Hangup anybody else using this ttyp, then reopen it for
         * ourselves.
         */
! # if !(defined(CRAY) || defined(__hpux) || defined(_AIX32)) && (BSD <= 43) && !defined(STREAMSPTY)
        (void) signal(SIGHUP, SIG_IGN);
        vhangup();
        (void) signal(SIGHUP, SIG_DFL);
***************
*** 1746,1757 ****
        int sig;
  {
  #ifndef       PARENT_DOES_UTMP
! # if (BSD > 43) || defined(convex)
        char *p;
  
        p = line + sizeof("/dev/") - 1;
        if (logout(p))
                logwtmp(p, "", "");
        (void)chmod(line, 0666);
        (void)chown(line, 0, 0);
        *p = 'p';
--- 1746,1759 ----
        int sig;
  {
  #ifndef       PARENT_DOES_UTMP
! # if (BSD > 43) || defined(convex) || defined(_AIX32)
        char *p;
  
        p = line + sizeof("/dev/") - 1;
+ #ifndef _AIX32
        if (logout(p))
                logwtmp(p, "", "");
+ #endif
        (void)chmod(line, 0666);
        (void)chown(line, 0, 0);
        *p = 'p';

home help back first fref pref prev next nref lref last post