freebsd-skq/lib/libc/yp
Bill Paul f067dfeabc Fix behavior of YP library routines in environments with multiple domains,
where one or more of the non-default domains are not yet bound.

If we make a YP request for a domain other than the default domain,
and there is no binding for the new domain yet, _yp_dobind() sees
that the /var/yp/binding/DOMAIN.VERS file for the unbound domain is
not locked (by ypbind) and from this it concludes that the NIS system
is dead, so it gives up.

This behavior has been changed: before giving up in this case, we now
make a second check to see if the binding file for the *default* domain
is also not locked. Only if the default domain binding file is also
unlocked to we now assume that ypbind has bought the farm and bail out.
(Note: this assumes that the user hasn't changed the default domain
while ypbind is running.)

With this change, _do_ypbind() is allowed to proceed into the next
section of code wherein it prods ypbind into establishing a binding
for the new domain. This first call times out after ten seconds,
after which it should retry and succeed. From then on, the binding
for the second domain should be handled normally.
1995-04-09 19:26:23 +00:00
..
Makefile.inc Add back in the YP code from 1.1.5. (This attribution brought to you 1994-08-07 23:04:55 +00:00
xdryp.c Fix xdr_ypmap_parms() so that it agrees with xdr_domainname(), xdr_peername() 1995-04-02 19:58:29 +00:00
yplib.c Fix behavior of YP library routines in environments with multiple domains, 1995-04-09 19:26:23 +00:00