Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 1997 12:54:47 -0700 (PDT)
From:      Bill Paul <wpaul@FreeBSD.ORG>
To:        jose@we.lc.ehu.es, wpaul@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/3891
Message-ID:  <199710131954.MAA20520@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
Synopsis: NIS-only netgroup lookups don't work

State-Changed-From-To: open-closed
State-Changed-By: wpaul
State-Changed-When: Mon Oct 13 12:44:41 PDT 1997
State-Changed-Why: 

Fixed in revision 1.22 in FreeBSD-current and revision 1.17.2.3 in
RELENG_2_2 of src/lib/libc/gen/getnetgrent.c. The bug was indeed due
to an NIS+ compatibility problem: the Sun rpc.nisd in YP compat mode
does not support the 'reverse' netgroup maps (netgroup.byhost and
netgroup.byuser). The code has been modified such that if a yp_match()
on the 'reverse' maps yields a YPERR_MAP (no such map in server's domain)
error, it will fail over to the 'slow' lookup method. The original
#ifdef CHARITABLE/#endif code was not quite correct as it would yield
a failover on any error; this is not the desired behavior since it
could result in a failed lookup being performed twice. (I must have
realized the code was wrong on some subconsious level which is why it
was #ifdef'ed out.)

This fix will be in 2.2.5-RELEASE.

-Bill



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199710131954.MAA20520>