From owner-freebsd-questions Wed Jun 10 17:38:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA02400 for freebsd-questions-outgoing; Wed, 10 Jun 1998 17:38:01 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mail1.realtime.net (mail1.realtime.net [205.238.128.217]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id RAA02330 for ; Wed, 10 Jun 1998 17:37:18 -0700 (PDT) (envelope-from jktheowl@bga.com) Received: (qmail 26134 invoked from network); 11 Jun 1998 00:37:12 -0000 Received: from zoom.realtime.net (HELO zoom.bga.com) (root@205.238.128.40) by mail1.realtime.net with SMTP; 11 Jun 1998 00:37:12 -0000 Received: from barnowl (apm7-197.realtime.net [204.96.0.197]) by zoom.bga.com (8.6.12/8.6.12) with SMTP id TAA18708; Wed, 10 Jun 1998 19:37:01 -0500 Date: Wed, 10 Jun 1998 19:44:04 -0500 (CDT) From: John Kenagy X-Sender: jktheowl@barnowl To: "Aleksey Z. Nardinov" cc: freebsd-questions@FreeBSD.ORG Subject: Re: HELP to setyp NIS, please In-Reply-To: <357D71C2.1D662B8@takthq.lipetsk.su> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 9 Jun 1998, Aleksey Z. Nardinov wrote: > I have a big trouble with setup NIS > i have 2 FreeBSD 2.2.5 box, > first box - master NIS, second slave NIS > i have do on the mster > domainname=NIS.domain > nis_client_enable="YES" # We're an NIS client (or NO). > nis_client_flags="-s" # Flags to ypbind (if enabled). > nis_ypset_enable="NO" # Run ypset at boot time (or NO). > nis_ypset_flags="" # Flags to ypset (if enabled). > nis_server_enable="YES" # We're an NIS server (or NO). > nis_server_flags="" # Flags to ypserv (if enabled). > nis_ypxfrd_enable="YES" # Run rpc.ypxfrd at boot time (or NO). > nis_ypxfrd_flags="" # Flags to rpc.ypxfrd (if enabled). > nis_yppasswdd_enable="YES" # Run rpc.yppasswdd at boot time (or > NO). > nis_yppasswdd_flags="-m /var/yp/master.passwd -s -f" # Flags to > rpc.yppass > > then build master NIS maps at /var/yp > add user to the NIS user map, try to login - OK > > make NIS slave: > > domainname=NIS.domain > nis_client_enable="YES" # We're an NIS client (or NO). > nis_client_flags="-s" # Flags to ypbind (if enabled). > nis_ypset_enable="NO" # Run ypset at boot time (or NO). > nis_ypset_flags="" # Flags to ypset (if enabled). > nis_server_enable="YES" # We're an NIS server (or NO). > nis_server_flags="" # Flags to ypserv (if enabled). > nis_ypxfrd_enable="NO" # Run rpc.ypxfrd at boot time (or NO). > nis_ypxfrd_flags="" # Flags to rpc.ypxfrd (if enabled). > nis_yppasswdd_enable="NO" # Run rpc.yppasswdd at boot time (or > NO). > nis_yppasswdd_flags="" # Flags to rpc.yppass > > do nathing in /var/yp > reboot > > say on slave > /var/yp > ypwhich > NIS.master > > ypcat passwd > bin:*:3:7:Binaries Commands and Source,,,:/:/nonexistent > ... Is this on the slave, too? > try to push maps from master server: > master say: > yppush: Transfer of map services.byname to server NIS.slave failed. > yppush: status returned by ypxfr: Domain not supported by server > > slave say > ypserv: Procedure ypproc_xfr called from MASTER:653 > ypserv: Client is referencing map "services.byname". > > what wrong ? You did not say if the slave is added to the /var/yp/ypservers file. I do not have a slave on my LAN. (Have not had the time to set up a crash box -- I usually need it ;-) ) I do not know why you need a slave server with only two machines. I would try to get NIS running with the master and the second machine a client first. Look at: http://www.realtime.net/sculpture/nis-startup.html There are some examples in there that run on my machines. I hope this helps, I'm not expert myself but will be doing some testing with a slave server soon. Let me know how you are doing. John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message