[Bug 1075234] Re: doesn't work with YP/NIS server defined in /etc/yp.conf

rjc 1075234 at bugs.launchpad.net
Wed Nov 14 11:42:09 UTC 2012


On Wed, Nov 14, 2012 at 09:33:02AM GMT, Robie Basak wrote:
> 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.

Absolutely, I can see the logic behind it. However, that variable does
not get cleared on the systems I have tested it under - as I mentioned
before, logs say that "-broadcast" is used. Therefore my conclusion is
that ypserver entry in (or the whole) /etc/yp.conf is ignored.

> Please could you provide precise steps to reproduce this problem on a
> freshly installed 12.04.1 system?

I'm using a script, which relevant part being:

export DEBIAN_FRONTEND=noninteractive
export DEBIAN_PRIORITY=critical

HOSTS="/etc/hosts"
YPCONF="/etc/yp.conf"
YPBIND="/etc/init/ypbind.conf"
PASSWDFILE="/etc/passwd"
SHADOWFILE="/etc/shadow"
GROUPFILE="/etc/group"
GSHADOWFILE="/etc/gshadow"

printf "\nxxx.xxx.xxx.xxx\tnisserver\n" >> $HOSTS

printf "\nnis\tnis/domain\tstring\tnis.domain" | debconf-set-selections

aptitude -y install nis

echo "+::::::" >> $PASSWDFILE
echo "+::::::::" >> $SHADOWFILE
echo "+:::" >> $GROUPFILE
echo "+:::" >> $GSHADOWFILE

printf "\nypserver nisserver" >> $YPCONF

Then there's a restart.

I had to add this line after the last one in order to make it work:

sed -i 's:\tBROADCAST=-broadcast:#\tBROADCAST=-broadcast' $YPBIND

I don't think I need to add that IP address, NIS domain and YP server
entries are all correct as it simply worked before on 10.04.
Actually now it doesn't even work there as the problem is the same in
both versions. It affected my build on 10.04 as "nis" package got
changed^Wbroken during the LTS cycle.
Probably I should have filed that bug under 10.04 as what used to work
just fine, got broken by a new version of "nis" package.

Regards,

rjc

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nis in Ubuntu.
https://bugs.launchpad.net/bugs/1075234

Title:
  doesn't work with YP/NIS server defined in /etc/yp.conf

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nis/+bug/1075234/+subscriptions



More information about the Ubuntu-server-bugs mailing list