]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Revert to using yp_order() to probe for master.paswd.by* maps and
authorBill Paul <wpaul@FreeBSD.org>
Fri, 18 Jul 2003 23:51:15 +0000 (23:51 +0000)
committerBill Paul <wpaul@FreeBSD.org>
Fri, 18 Jul 2003 23:51:15 +0000 (23:51 +0000)
commit0287aa1cee2557e231c9c072d0cee08068ca6b44
treea524da748d1031ff31e5ff651642b79bb31ae206
parent191926e10e6b6a2af0ce4510639e46b04a2c736c
Revert to using yp_order() to probe for master.paswd.by* maps and
don't probe the server at all for passwd.by* maps. This fixes
interoperability with the Services For UNIX NIS server (which is
really a front end to Captive^WActiveDirectory). This server
incorrectly returns success for all YPPROC_MASTER requests,
even for maps that don't exist, which makes it impossible to
(ab)use it to probe for the existence of the master.passwd.by*
maps.

This is a little kludgey, but basically restores the original
behavior of getpwent.c as it is in -stable, and works around both
the lack of YPPROC_ORDER on NIS+ servers as well as the broken
YPPROC_MASTER on Services For UNIX servers.
lib/libc/gen/getpwent.c