From owner-freebsd-bugs Thu Aug 13 10:00:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA27460 for freebsd-bugs-outgoing; Thu, 13 Aug 1998 10:00:12 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA27441 for ; Thu, 13 Aug 1998 10:00:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id KAA26410; Thu, 13 Aug 1998 10:00:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA26861; Thu, 13 Aug 1998 09:56:42 -0700 (PDT) (envelope-from nobody) Message-Id: <199808131656.JAA26861@hub.freebsd.org> Date: Thu, 13 Aug 1998 09:56:42 -0700 (PDT) From: Nick.hibma@jrc.it To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: conf/7606: NIS Makefile.dist: NOPUSH replaced by REMOTE_SERVER and LOCAL_SEVER Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7606 >Category: conf >Synopsis: NIS Makefile.dist: NOPUSH replaced by REMOTE_SERVER and LOCAL_SEVER >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 13 10:00:01 PDT 1998 >Last-Modified: >Originator: Nick Hibma >Organization: Joint Research Centre >Release: 2.2.5/2.2.6 >Environment: FreeBSD mda04.jrc.it 2.2.5-RELEASE FreeBSD 2.2.5-RELEASE #5: Tue Aug 4 10:58:55 CEST 1998 toor@mda02.jrc.it:/usr/src/sys/compile/SERVER_TAPE i386 >Description: The NOPUSH option in /var/yp/Makefile.dist sounds a bit silly. What I wanted to do was to be able to tell the NIS system that I do not want the local system to be updated only the remote one. That does make sense if you consider one server serving more than one domain. In my case it is done because I do not want to use NIS on the main host yet, until I have figured everything out but I do want to keep the info in a central place. I replaced it with the following: *** Makefile.dist Tue Oct 21 14:20:37 1997 --- Makefile.new Thu Aug 13 16:46:01 1998 *************** *** 16,22 **** # (By default we assume that we are only serving a small domain with # only one server.) # ! NOPUSH = "True" # If you want to use a FreeBSD NIS server to serve non-FreeBSD clients # (i.e. clients who expect the password field in the passwd maps to be --- 16,28 ---- # (By default we assume that we are only serving a small domain with # only one server.) # ! #REMOTE_SERVER = "True" ! ! # ! # If this host only serves the tables but no clients, comment out the ! # next line. ! LOCAL_SERVER = "True" ! # If you want to use a FreeBSD NIS server to serve non-FreeBSD clients # (i.e. clients who expect the password field in the passwd maps to be and below I have changed a lot of lines containing @$(DBLOAD) -c and ! $(NOPUSH) *************** *** 497,505 **** $(AWK) -F: '{ if ($$1 != "+") print $$3"\t"$$0 }' $^ \ | $(DBLOAD) ${S} -i $(MASTER) -o $(YPMAPDIR)/$@ - $(TMP) @$(MV) $(TMP) $@ ! @$(DBLOAD) -c ! @if [ ! $(NOPUSH) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi ! @if [ ! $(NOPUSH) ]; then echo "Pushed $@ map." ; fi amd.host: $(AMDHOST) @echo "Updating $@..." --- 503,511 ---- $(AWK) -F: '{ if ($$1 != "+") print $$3"\t"$$0 }' $^ \ | $(DBLOAD) ${S} -i $(MASTER) -o $(YPMAPDIR)/$@ - $(TMP) @$(MV) $(TMP) $@ ! @if [ $(LOCAL_SERVER) ]; then $(DBLOAD) -c ; fi ! @if [ $(REMOTE_SERVER) ]; then $(YPPUSH) -d $(DOMAIN) $@; fi ! @if [ $(REMOTE_SERVER) ]; then echo "Pushed $@ map." ; fi amd.host: $(AMDHOST) @echo "Updating $@..." (the full patch is quite long but available on request) >How-To-Repeat: >Fix: If people are interested I can supply a full patch/an updated Makefile.dist >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message