[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS: cvs.openbsd.org: src



CVSROOT:	/cvs
Module name:	src
Changes by:	schwarze_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2009/03/27 06:31:31

Modified files:
	lib/libc/gen   : getpwent.c getgrouplist.c getgrouplist.3 
	usr.sbin/ypserv/mknetid: netid.5 
	share/man/man5 : group.5 passwd.5 

Log message:
getgrouplist: If YP is #defined and enabled in /etc/group(5) and /etc/netid(5)
contains a matching entry, use that and refrain from accessing YP.
getpwnam/getpwuid: If YP is #defined and /etc/master.passwd(5) contains
a matching entry before the first YP entry, use that and stay away from YP.

Taken together, this allows a solution to the following problem pointed
out by deraadt@: When YP was configured but temporarily unavailable, even
root login would block, hindering you when trying to do repairs.
To avoid this, you can now provide a static entry for root in /etc/netid.

Using suggestions from miod@ otto@ blambert@ jmc_(_at_)__(_dot_)_
"commit" deraadt@, "cool" ajacoutot@, "looks fine" jmc_(_at_)__(_dot_)_