[3619] in Kerberos
Kerberos on Silicon Graphics host
daemon@ATHENA.MIT.EDU (James R. Hendrick)
Tue Jul 26 12:26:49 1994
Date: Tue, 26 Jul 1994 12:06:58 -0400
From: "James R. Hendrick" <hendrick@ctron.com>
To: lac@xap.xyplex.com
Cc: kerberos@MIT.EDU
In-Reply-To: Lynne Chantler's message of Tue, 26 Jul 1994 10:56:26 UNDEFINED <lac.306.00A76395@xap.xyplex.com>
Lynne,
Here's a bit I just sent to another member of the list. Since you
asked, I thought I'd CC: the rest of the list in case it helps anyone
else. (Actually, if any of you have input re: the getpwnam() issue, please
let ME know ;-)
We aren't on V5 yet, but we are using CNS (Cygnus Network Security)
which is based on V4. The source built out of the box on IRIX 5.2, and seems to
run well with one (minor?) annoyance. The klogind only worked when called as
eklogind. The same daemon seg-faults on a dereferenced null pointer from a
failed getpwnam() call when invoked as klogind. We have a "workaround" for
this since the code calls getpwnam() earlier when called as the non-encrypted
version. We just changed the "pwd = getpwnam(username)" to
"if ( pwd || (pwd = getpwnam(username)))" since it was the SECOND call that
fails with "Resource temporarily unavailable". With this change, it works well.
I have poked around a bit and it seems that something is not right
with the getpwnam() call. I suspect a bug here since they just (since IRIX 4)
integrated the NIS compatibility calls into their standard C library. (You used
to have to link with -lsun to get NIS functionality). This also presents some
problems with IRIX 4 in an NIS environment. We are shifting to IRIX 5 so I have
not done much testing ov the CNS code under IRIX 4.
Hope this helps,
Jim
###########################################################################
### Jim Hendrick (hendrick@ctron.com) ### ###
### Cabletron Systems Inc. ### " My opinions, etc are ###
### P. O. Box 5005 ### exclusively the property ###
### Rochester, NH 03867-5005 ### of nobody in particular." ###
### (603) 337-7572 ### ###
### fax:(603)337-7370 ### ###
###########################################################################