Date: Fri, 18 Jul 2003 16:51:15 -0700 (PDT) From: Bill Paul <wpaul@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libc/gen getpwent.c Message-ID: <200307182351.h6INpFFZ060328@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
wpaul 2003/07/18 16:51:15 PDT
FreeBSD src repository
Modified files:
lib/libc/gen getpwent.c
Log:
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.
Revision Changes Path
1.83 +14 -7 src/lib/libc/gen/getpwent.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200307182351.h6INpFFZ060328>
