Hi,
I'm currently housekeeping long standing bug reports about NIS, aѕ I adopted
recently the package.

In this report, the behavior of ypbind appears as a feature, not a bug. I mean
its behavior is expected.

Ypbind needs to know a list of NIS servers (in /etc/yp.conf) or
issues a broadcast (iif run with -broadcast or broacast is added to /etc/yp.conf) and wait for an answerṡ. Even in case of a NIS server, ypbind expects an IP address (possibly 127.0.0.1) in /etc/yp.conf.

So I don't see in this report
On Thu, Oct 02, 2003 at 08:36:56PM +0930, Paul Schulz wrote:
Package: nis
Version: 3.9-6.3
Severity: normal

Upgrade NIS in testing distribution and NIS fails to restart.

The usual messages is reported.
Starting NIS services: ypbind [binding to YP server .......... backgrounded]

NIS can be stopped and restarted several times with the same result.
(It was running previously without a problem.)

If 'ypbind' is started manually,

 # /usr/sbin/ypbind -f /etc/defaultdomain


Note that the right cmd is /usr/sbin/ypbind -f /etc/yp.conf, the /etc/defaultdomain is not intended as a configuration file.

The follwoing error is reported..
 io:~# /usr/sbin/ypbind -f /etc/defaultdomain
 No NIS server and no -broadcast option specified.
 Add a NIS server to the /etc/defaultdomain configuration file,
 or start ypbind with the -broadcast option.

BUT
If this option is put in, then ypbind starts properly
and then (surprisingly) NIS works again as expected.



This works only if at least one server is configured for
broadcasting. Which is not even the case since the buster release...

I don't remember about the woody days, but a possibility is
that it did revert to broadcast per default in case of a missing list of
servers, and that changed in sarge. For sure upstream applied a patch
for -local-only around that time, which could have changed the behavior.

For sure, nowdays and in the future broadcast is an explicit choice
of the admin, there is not a default for that and the admin must
specify an address for a working server or even -local-only for loopback.

--
Francesco P. Lovergine

Reply via email to