Subject: Pine/imapd and SGI weirdness

From: Jeff Traigle <[email-masked]>
Date: Mon, 7 Feb 1994 10:24:49 -0500 (EST)

I'm having a small problem with the pre-authentication mechanism on my 
SGI clients and have been unable to determine the cause so far. Hopefully 
someone out there has some insight.

Setup: SGI as mail/imap server, Sun as NIS server

Problem: SGI clients insist on login/password to access the mail server.

Hints: Suns and SGI mail/imap server have no problems with 
pre-authentication. Doesn't matter whether or not the passwd info is in NIS 
or local to machines.

Configuration:
l--------- 1 root sys 20 Jan 28 13:25 /etc/rimapd@ -> /usr/local/etc/imapd

-rwxr-xr-x   1 root     sys       549268 Feb  7 09:30 /usr/local/etc/imapd

inetd.conf entry
imap    stream  tcp     nowait  root    /usr/local/etc/imapd    imapd

If anybody has experienced this or has any ideas about what might be 
causing it, I'd really appreciate the input. Other admins on campus who 
have similar setups tell me they don't have this problem, but I've been 
unable to determine differences in setups that would account for the 
difference in behavior (unless they aren't running 3.89 as I am trying to 
do).

=============================================================================
|   Jeff Traigle   |   Systems Administrator   |   University of Michigan   |
=============================================================================
|         College of Pharmacy         |    Biophysics Research Division     |
=============================================================================
|           Masters of Science in Computer Science and Engineering          |
=============================================================================
|                 Masters of Information and Library Studies                |
=============================================================================

---

From: Jeff Traigle <[email-masked]>
Date: Mon, 7 Feb 1994 12:38:57 -0500 (EST)

Seems I found the problem after digging around in the source code. There 
is a bug in the os_sgi.c code for the c-client in the pine-3.89 
distribution. Line 411 of this file reads:

    execl ("/usr/ucb/rsh","rsh",hostname,"exec",service,0);

It should read:

    execl ("/usr/bsd/rsh","rsh",hostname,"exec",service,0);

There is no /usr/ucb directory on SGIs (at least not ones running 4.0.x). 
Changing this line and recompiling pine seems to have remedied the 
problem I was having.

---

From: Mark Crispin <[email-masked]>
Date: Mon, 7 Feb 1994 10:40:53 -0800 (PST)

Hello.

There is a bug in Pine 3.89 on SGI systems related to preauthentication.  It
is fixed in Pine 3.90.

In pine/imap/non-ANSI/c-client/os_sgi.c, find the reference to "/usr/ucb/rsh"
and replace it with RSHPATH (no quotes).  Then rebuild.