Skip Menu |
 

Download (untitled) / with headers
text/plain 6.1KiB
From vwelch@ncsa.uiuc.edu Thu May 21 10:10:35 1998
Received: from MIT.EDU (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.69.0.28]) by rt-11.MIT.EDU (8.7.5/8.7.3) with SMTP id KAA22256 for <bugs@RT-11.MIT.EDU>; Thu, 21 May 1998 10:10:30 -0400
Received: from computer.ncsa.uiuc.edu by MIT.EDU with SMTP
id AA09572; Thu, 21 May 98 10:10:35 EDT
Received: from vwelch by computer.ncsa.uiuc.edu with local (Exim 1.82 #9)
id 0ycW2f-0000mc-00; Thu, 21 May 1998 09:09:57 -0500
Message-Id: <E0ycW2f-0000mc-00@computer.ncsa.uiuc.edu>
Date: Thu, 21 May 1998 09:09:57 -0500
From: vwelch@ncsa.uiuc.edu
Reply-To: vwelch@ncsa.uiuc.edu
To: krb5-bugs@MIT.EDU
Cc: vwelch@ncsa.uiuc.edu
Subject: Windows: Enhancements to NT-ALPHA-2 snapshot
X-Send-Pr-Version: 3.99

Show quoted text
>Number: 597
>Category: krb5-misc
>Synopsis: Windows: Enhancements to NT-ALPHA-2 snapshot
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: krb5-unassigned
>State: open
>Class: support
>Submitter-Id: unknown
>Arrival-Date: Thu May 21 10:11:00 EDT 1998
>Last-Modified: Fri Sep 14 11:48:43 EDT 2001
>Originator: Von Welch
>Organization:

------------------------------------------------------------------------
Von Welch Senior Network Engineer vwelch@ncsa.uiuc.edu
National Center for Supercomputing Applications
------------------------------------------------------------------------
Show quoted text
>Release: NT-ALPHA-2
>Environment:
Windows 95/NT
System: Linux computer.ncsa.uiuc.edu 2.0.32 #4 Mon Apr 20 09:38:29 CDT 1998 i686 unknown
Architecture: i686

Show quoted text
>Description:
The patch referred to below improves the usefulness the of
the Kerberos code under Windows. Specifically:
-the rcp and rsh clients now build and function.
-the ftp client builds and functions. Note that although
this port does function and work well, the changes to
the code are really, really ugly. For the long term it
really needs to be rewritten from scratch for windows.
-the krb524 library builds and functions (Thanks to Craig
Huckabee for this port).

The patch also includes other minor windows-related fixes I've
picked up from krb5-bugs or other sources (e.g. a fix for the
tailing '.' in NT-5.0 hostnames). It also includes some code
from Ken Hornstein's AFS-KRB5 Migration kit that I found
useful for doing the port.

Show quoted text
>How-To-Repeat:

Show quoted text
>Fix:
The patch is quiet large (140K). You can get it at:
http://computer.ncsa.uiuc.edu/kerberos/windows.patch

Apply to the NT-Alpha2 snapshot and then build as normal. The
patch will modify the makefiles to build the krb525 library,
rcp, rsh and ftp clients in addition to the usual stuff.

Show quoted text
>Audit-Trail:

From: "Douglas E. Engert" <deengert@anl.gov>
To: vwelch@ncsa.uiuc.edu
Cc: krb5-bugs@MIT.EDU
Subject: Re: krb5-misc/597: Windows: Enhancements to NT-ALPHA-2 snapshot
Date: Tue, 26 May 1998 08:23:22 -0500

vwelch@ncsa.uiuc.edu wrote:
Show quoted text
>
> >Number: 597
> >Category: krb5-misc
> >Synopsis: Windows: Enhancements to NT-ALPHA-2 snapshot
> >Confidential: no
> >Severity: non-critical
> >Priority: low
> >Responsible: krb5-unassigned
> >State: open
> >Class: support
> >Submitter-Id: unknown
> >Arrival-Date: Thu May 21 10:11:00 EDT 1998
> >Last-Modified:
> >Originator:
> >Organization:
>
> ------------------------------------------------------------------------
> Von Welch Senior Network Engineer vwelch@ncsa.uiuc.edu
> National Center for Supercomputing Applications
> ------------------------------------------------------------------------


Von,

Built the K5 code with your chnages under Windows 95,
and it works well! I would hope MIT would pick this up.

Tried the FTP and rsh. With FTP the unix userid defaults to
the host name rather then the K5 principal name. Can that
be fixed?

I added these two mods which allow for non-blocking I/O
(I sent these to MIT last year some time.) This was needed
for a Eudora problem I had seen at one time.

*** net_read.c.anl.orig Wed Jun 12 00:15:06 1996
--- net_read.c Fri May 22 08:37:21 1998
***************
*** 51,56 ****
--- 51,71 ----
if (SOCKET_ERRNO == SOCKET_EINTR)
continue;
#if defined(_MSDOS) || (_WIN32)
+ /* check for non-blocking, and take action
+ * this includes doing a select and let the
+ * calling aplication's blocking hook routines
+ * or the winsock blocking hook routine
+ * dispatch other messages - DEE
+ */
+ if (SOCKET_ERRNO == WSAEWOULDBLOCK) {
+ fd_set fdset;
+
+ FD_ZERO(&fdset);
+ FD_SET(fd, &fdset);
+ cc = select(0, &fdset, NULL, NULL, NULL);
+ if (cc != SOCKET_ERROR)
+ continue;
+ }
/* XXX this interface sucks! */
errno = SOCKET_ERRNO;
#endif
*** net_write.c.anl.orig Wed Jun 12 00:15:07 1996
--- net_write.c Fri May 22 08:44:32 1998
***************
*** 50,55 ****
--- 50,71 ----
if (SOCKET_ERRNO == SOCKET_EINTR)
continue;
#if defined(_MSDOS) || (_WIN32)
+ /* check for non-blocking, and take action
+ * this includes doing a select and let the
+ * calling aplication's blocking hook routines
+ * or the winsock blocking hook routine
+ * dispatch other messages - DEE
+ */
+ if (SOCKET_ERRNO == WSAEWOULDBLOCK) {
+ fd_set fdset;
+
+ FD_ZERO(&fdset);
+ FD_SET(fd, &fdset);
+ cc = select(0, NULL, &fdset, NULL, NULL);
+ if (cc != SOCKET_ERROR)
+ continue;
+ }
+
/* XXX this interface sucks! */
errno = SOCKET_ERRNO;
#endif

--

Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
Show quoted text
>Unformatted:
Subject: Windows: Enhancements to NT-ALPHA-2 snapshot
Patch URL no longer valid. Doug's patch might be useful though.