Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Aug 1998 09:56:42 -0700 (PDT)
From:      Nick.hibma@jrc.it
To:        freebsd-gnats-submit@FreeBSD.ORG
Subject:   conf/7606: NIS Makefile.dist: NOPUSH replaced by REMOTE_SERVER and LOCAL_SEVER
Message-ID:  <199808131656.JAA26861@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199808131656.JAA26861>