Skip site navigation (1)Skip section navigation (2)
Date:      	Tue, 09 Jun 1998 21:32:51 +0400
From:      "Aleksey Z. Nardinov" <anard@takthq.lipetsk.su>
To:        freebsd-questions@FreeBSD.ORG
Subject:   HELP to setyp NIS,  please 
Message-ID:  <357D71C2.1D662B8@takthq.lipetsk.su>

next in thread | raw e-mail | index | archive | help
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
...

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 ?
--
anard


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?357D71C2.1D662B8>