doesn't work with YP/NIS server defined in /etc/yp.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nis (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Hi,
ypbind seems to ignore /etc/yp.conf and passes "-broadcast" to its options.
/etc/yp.conf:
[begin]
# yp.conf Configuration file for the ypbind process. You can define
# NIS servers manually here if they can't be found by
# broadcasting on the local net (which is the default).
#
# See the manual page of ypbind for the syntax of this file.
#
# IMPORTANT: For the "ypserver", use IP addresses, or make sure that
# the host is in /etc/hosts. This file is only interpreted
# once, and if DNS isn't reachable yet the ypserver cannot
# be resolved and ypbind won't ever bind to the server.
# ypserver ypserver.
ypserver mynisserver
[end]
I do have an entry in /etc/hosts for my NIS server.
I checked the the logs and found that "-broadcast" is being used even though ypserver was defined in /etc/yp.conf.
The only reference to "broadcast" I have found was in /etc/init/
After hashing "BROADCAST=
# lsb_release -rd
Description: Ubuntu 12.04.1 LTS
Release: 12.04
# apt-cache policy nis
nis:
Installed: 3.17-32ubuntu4.1
Candidate: 3.17-32ubuntu4.1
Regards,
rjc
Thank you for taking the time to report this bug and helping to make Ubuntu better.
I am unable to reproduce this bug. There is logic in /etc/init/ ypbind. conf to clear the BROADCAST variable after it is set if yp.conf defines ypserver, and this seems to be working for me with your /etc/yp.conf. I am using 3.17-32ubuntu4.1.
Please could you provide precise steps to reproduce this problem on a freshly installed 12.04.1 system?