[400] in Kerberos
daemon@TELECOM.MIT.EDU (Jennifer Steiner)
Wed Jun 22 10:00:55 1988
To: kerberos@ATHENA.MIT.EDU
From: Jennifer Steiner <steiner@ATHENA.MIT.EDU>
(Please mail to kerberos.mit.edu not just me, for the
benefit of other beta testers. -Jennifer)
------- Forwarded Message
Received: by E40-PO.MIT.EDU (5.45/4.7) id AA22864; Tue, 21 Jun 88 18:24:04 EDT
Received: by ATHENA.MIT.EDU (5.45/4.7) id AA08844; Tue, 21 Jun 88 18:23:43 EDT
Received: by uc.msc.umn.edu (5.54/1.14)
id AA19916; Tue, 21 Jun 88 17:21:27 CDT
Date: Tue, 21 Jun 88 17:21:27 CDT
From: "Stuart Levy" <slevy@uc.msc.umn.edu>
Message-Id: <8806212221.AA19916@uc.msc.umn.edu>
To: steiner@ATHENA.MIT.EDU
Subject: Re: anyone beta testing?
I haven't installed a server nor applications yet but did compile most things.
Some changes were needed to accommodate SUNs.
include/osconf.h
Couldn't find any documentation on how to add configuration information
for new kinds of machines, so inserted #ifdef sun here.
include/conf-bsd-m68k.h
The #ifdef sun in osconf.h includes this.
(This is a new file, so I did diff -c /dev/null.)
bsd/Makefile: Sun 3.3 (at least) <sys/param.h> doesn't define MAXHOSTNAMELEN
so I put this in the Makefile. I'm not sure where this kind of hack
really belongs; maybe in <osconf.h>? In that case kcmd.c would need
to include it.
bsd/rlogin.c
There's an #ifdef sun related to handling the window size structure
but it doesn't work; the distributed rlogin.c explicitly declares
"struct winsize" which conflicts with the declaration of the same
structure in Sun's <sys/ioctl.h>.
bsd/rshd.c
bsd/rlogind.c
appl/sample_server.c
Minor changes to accommodate the difference between 4.2 and 4.3
syslog(3).
Before we can actually use this on a pre-4.0 SUN, I need to integrate the
Kerberos login.c into the 4.2 environment (different ttys format, no
getttyent(), etc.). This shouldn't be too big a deal but I haven't gotten
to it yet.
Here are diffs for the changes made so far.
*** /tmp/,RCSt1a02544 Tue Jun 21 16:52:52 1988
- --- osconf.h Mon Jun 6 19:51:55 1988
***************
*** 18,22 ****
- --- 18,26 ----
#else
#ifdef ibm032
#include "conf-bsd-ibm032.h"
+ #else
+ #ifdef sun
+ #include "conf-bsd-m68k.h"
+ #endif /* sun */
#endif /* ibm032 */
#endif /* not vax */
*** /dev/null Tue Jun 21 17:00:18 1988
- --- conf-bsd-m68k.h Mon Jun 6 19:55:32 1988
***************
*** 0 ****
- --- 1,19 ----
+ /*
+ * $Source: /mit/kerberos/src/include/RCS/conf-bsdvax.h,v $
+ * $Author: steiner $
+ * $Header: conf-bsdvax.h,v 1.3 88/02/25 14:44:06 steiner Exp $
+ *
+ * Copyright 1988 by the Massachusetts Institute of Technology.
+ *
+ * For copying and distribution information, please see the file
+ * <mit-copyright.h>.
+ *
+ * Machine-type definitions: 68000 with BSD Unix, e.g. SUN
+ */
+
+ #include <mit-copyright.h>
+
+ #define BITS32
+ #define BIG
+ #define MSBFIRST
+ #define BSDUNIX
*** /tmp/,RCSt1a02520 Tue Jun 21 16:52:05 1988
- --- rlogin.c Mon Jun 6 22:02:12 1988
***************
*** 83,92 ****
#endif
#ifdef sun
struct ttysize winsize;
- - struct winsize {
- - unsigned short ws_row, ws_col;
- - unsigned short ws_xpixel, ws_ypixel;
- - };
#else sun
struct winsize winsize;
#endif sun
- --- 83,88 ----
*** /tmp/,RCSt1a02525 Tue Jun 21 16:52:07 1988
- --- rlogind.c Mon Jun 6 22:09:32 1988
***************
*** 48,53 ****
- --- 48,57 ----
#include <syslog.h>
#include <strings.h>
+ #ifndef LOG_AUTH
+ # define LOG_AUTH 0
+ #endif LOG_AUTH
+
#ifdef KERBEROS
#include <sys/param.h>
#include <utmp.h>
*** /tmp/,RCSt1a02530 Tue Jun 21 16:52:09 1988
- --- rshd.c Mon Jun 6 22:06:08 1988
***************
*** 78,84 ****
- --- 78,88 ----
#ifdef KERBEROS
ksh = (strcmp(*argv,"kshd")==0);
#endif KERBEROS
+ #if defined(LOG_ODELAY) && defined(LOG_DAEMON)
openlog("rsh", LOG_PID | LOG_ODELAY, LOG_DAEMON);
+ #else /* probably 4.2BSD */
+ openlog("rsh", LOG_PID);
+ #endif /* 4.2BSD */
fromlen = sizeof (from);
if (getpeername(0, &from, &fromlen) < 0) {
fprintf(stderr, "%s: ", argv[0]);
*** /tmp/,RCSt1a02560 Tue Jun 21 16:53:31 1988
- --- sample_server.c Mon Jun 6 21:37:08 1988
***************
*** 49,55 ****
- --- 49,59 ----
/* open a log connection */
+ #ifdef LOG_DAEMON
openlog("sample_server", 0, LOG_DAEMON);
+ #else !LOG_DAEMON
+ openlog("sample_server", 0);
+ #endif !LOG_DAEMON
/*
* To verify authenticity, we need to know the address of the
------- End of Forwarded Message