I'm testing a new box here at work. New NIS domain, no slaves, 6
clients. I moved my NIS source files to /var/yp. My domain is
default.lan (set in /etc/defaultdomain). I modded the Makefile,
changed YPSRCDIR from /etc to /var/yp. The problem I have is that
when I modify a source file (passwd or group) and do a make, the maps
get put in /var/yp but not /var/yp/default.lan. All the clients and
the server seem to be looking for the maps in /var/yp/default.lan. I
found this out because I changed some default shells in the passwd
file and did a make, but the users shell didn't change.
I removed all the maps and reran ypinit -m. That fixed the issue for
that time, but the maps are still not updating in default.lan. They
will if I `make target` in /var/yp but I'd like them to update on a
regular make. I tried to set NOPUSH to false, but that broke make
because it was trying to update the ypservers map which doesn't exist
because its YPMAPDIR is all goofed up. I added an @echo $(YPMAPDIR)
inside passwd.byname and it returned /var/yp/yp. Changing DOMAIN to
default.lan in the Makefile also breaks the make. :?
Sorry for the long post.
Thanks for any help someone could give.
|