Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 1998 19:44:04 -0500 (CDT)
From:      John Kenagy <jktheowl@bga.com>
To:        "Aleksey Z. Nardinov" <anard@takthq.lipetsk.su>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: HELP to setyp NIS,  please 
Message-ID:  <Pine.BSF.3.95q.980610192930.348A-100000@barnowl>
In-Reply-To: <357D71C2.1D662B8@takthq.lipetsk.su>

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


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95q.980610192930.348A-100000>