bin/52792: users on NIS+ passwd database cannot login into FreeBSD 5.1-BETA

TOMITA Yoshinori yoshint at flab.fujitsu.co.jp
Thu May 29 17:30:03 PDT 2003


>Number:         52792
>Category:       bin
>Synopsis:       users on NIS+ passwd database cannot login into FreeBSD 5.1-BETA
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 29 17:30:01 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     TOMITA Yoshinori
>Release:        FreeBSD 5.1-BETA i386
>Organization:
>Environment:
System: FreeBSD laksmi 5.1-BETA FreeBSD 5.1-BETA #1: Wed May 28 14:01:30 JST 2003 yoshin-t at laksmi:/usr/src/sys/i386/compile/Laksmi i386


	
>Description:
Since src/lib/libc/gen/getpwent.c revision 1.70, getpwent(3) calls "yp_order",
precisely in nis_map() function.
yp_order is not supportted by NIS+ in YP comatible mode servers.
This is denoted in getpwent.c of revision 1.69,
also in current src/lib/libc/yp/yplib.c. 

Due to yp_oredr failure for NIS+ server, nis_passwd() in getpwent.c stops
looking up passwd.by*(or master.passwd.by*) maps.
After all, users on NIS+ passwd are ignored.

>How-To-Repeat:
	
Please try NIS+ in YP compatible mode such as Solaris.
Any users on NIS+ passwd database cannot login into FreeBSD 5-Current.

>Fix:

	

Replacing yp_order() by yp_master() in nis_map(),
it seems working fine for me.

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list