From root@noneedto.tellme.com Tue Jul  6 14:52:55 1999
Return-Path: <root@noneedto.tellme.com>
Received: from noneedto.tellme.com (noneedto.tellme.com [209.157.135.23])
	by hub.freebsd.org (Postfix) with ESMTP id CE9A914E0F
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  6 Jul 1999 14:52:54 -0700 (PDT)
	(envelope-from root@noneedto.tellme.com)
Received: (from root@localhost)
	by noneedto.tellme.com (8.9.3/8.9.3) id OAA00813;
	Tue, 6 Jul 1999 14:50:21 -0700 (PDT)
	(envelope-from root)
Message-Id: <199907062150.OAA00813@noneedto.tellme.com>
Date: Tue, 6 Jul 1999 14:50:21 -0700 (PDT)
From: Charlie Root <root@noneedto.tellme.com>
Reply-To: dannyman@dannyland.org
To: FreeBSD-gnats-submit@freebsd.org
Cc: dannyman@dannyland.org
Subject: getpwuid() NIS UID override fails
X-Send-Pr-Version: 3.2

>Number:         12539
>Category:       bin
>Synopsis:       getpwuid() NIS UID override fails
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul  6 15:00:01 PDT 1999
>Closed-Date:    Tue Jul 6 15:31:45 PDT 1999
>Last-Modified:  Tue Jul  6 15:32:07 PDT 1999
>Originator:     dannyman
>Release:        FreeBSD 3.2-RELEASE i386
>Organization:
Tellme Networks
>Environment:

Running ypserv off a Linux box fine, attempting to set up workstation as NIS
client for password:

>Description:

/etc/master.passwd:
+dannyman::1001:0::::dannyman::/usr/local/bin/tcsh

noneedto# id dannyman
uid=1001(dannyman) gid=0(wheel) groups=0(wheel)
noneedto# id 1001
id: 1001: no such user
noneedto# ypmatch dannyman passwd
dannyman:4hDtuhKllG8Xs:501:101::/home/dannyman:/bin/tcsh
noneedto# id 501
uid=1001(dannyman) gid=0(wheel) groups=0(wheel)
noneedto# finger dannyman
Login: dannyman                         Name: dannyman
Directory: /home/dannyman               Shell: /usr/local/bin/tcsh
Last login Tue Jul  6 14:38 (PDT) on ttyv0
No Mail.
Mail forwarded to: danny@tellme.com
No Plan.

User can log in successfully.

As far as I can tell from passwd(5), getpwuid should work.  As it is,
numerous programs, including sudo and ssh, fail.

>How-To-Repeat:
>Fix:
	
If this not up anyone's ally, I could dig around the code myself.  Just let
me know. :)

-danny


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Tue Jul 6 15:31:45 PDT 1999 
State-Changed-Why:  
Duplicate of bin/12538. 
>Unformatted:
