[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Solution] NIS slave hosts map problem



Hello all,

	the solution to the problem described previously (slave server
unable to transfer the hosts.{byaddr,byname} maps due to a DBM error)
is solved by upgrading ypserv to version 1.1.1 (distributed version is
1.0.4). This version can be found at:

ftp.lysator.liu.se/pub/NYS/servers
ftp.uni-paderborn.de/linux/local/yp
http://www-vt.uni-paderborn.de/~kukuk/linux

	you need to edit the Makefile, once make config is done, and
apply the following patch so it finds the ypserv.securenets where
Debian keeps it.

--- Makefile    Tue Nov  5 16:54:07 1996
+++ Makefile.new        Tue Nov  5 14:46:02 1996
@@ -34,10 +34,10 @@
 exec_prefix = ${prefix}
 
 ## Remember to modify the ypMakefile if you modify YPBINDIR !
-YPBINDIR= ${exec_prefix}/libexec/yp
+YPBINDIR= /usr/lib/yp
 YPMAPDIR= /var/yp
 SBINDIR = $(exec_prefix)/sbin
-CONFDIR = ${prefix}/etc
+CONFDIR = /etc
 MAN5DIR = $(prefix)/man/man5
 MAN8DIR = $(prefix)/man/man8
 
@@ -46,6 +46,7 @@
 ## "securenets" in YPMAPDIR. You must also add 
 ## -DSECURENETS='"$(SECURENETS)"' to CPPFLAGS.
 #SECURENETS = $(YPMAPDIR)/securenets
+SECURENETS = $(CONFDIR)/ypserv.securenets
 
 ## How many children of ypserv should be run max. at one time
 MAXCHILDREN = 20
@@ -79,7 +80,7 @@
 CFLAGS = -O2 
 CPPFLAGS =  -DYPMAPDIR='"$(YPMAPDIR)"' -DYPBINDIR='"$(YPBINDIR)"'\
                -DCONFDIR='"$(CONFDIR)"'
-DMAX_CHILDREN=$(MAXCHILDREN)\
-               -DXFRBLOCKSIZE=$(XFRBLOCKSIZE)
+               -DXFRBLOCKSIZE=$(XFRBLOCKSIZE)
-DSECURENETS='"$(SECURENETS)"'
 
 LDFLAGS = 
 WARNFLAGS = -Wall


I hope this is of help to someone else,

Ciao,

	Arrigo

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: