Operating System - Linux
1830222 Members
2003 Online
109999 Solutions
New Discussion

Re: problem binding to nis slave server

 
itai weisman
Super Advisor

problem binding to nis slave server

hi everyone,
i'm trying to set up a new linux nis slave server, but for some reason, it wouldn't work.
i'm able to bind the slave server to the master servcer (i get the desired output from ypmatch command), but when i'm trying to bind a new nis client to the nis slave server, it wouldn't work (ypbind won't bind to the server).
i have configured the nis slave server as followed:
/etc/yp.conf -
domain mydomain server mymasterserver
/etc/sysconfig/network -
i've added node name and domain name
i used dommainname and ypdomainname commands in order to determine domain name.
i ran the services portmap, ypserv and ypbind -
and it seemed to be ok

in the nis client - i did exactly as in the nis slave, except the definition in /etc/yp.conf - there i wrote
domain mydomain broadcast (and execpt i didn't attempt to load ypserv, ofcourse)

i tried to run ypbind, it binded to the domain (sais 'ok') but got stucked and failed when i tried to connect the nis server.

i tried also to bind this client to other nis slave (not linux) - to HPUX 11i - and it worked perfectly.

i'm pretty sure the problem is somewhere in the setup of the NIS SLAVE SERVER, not in the client.

all machines are 2.4.9-e.24enterprise. red hat

anyone?

9 REPLIES 9
Huc_1
Honored Contributor

Re: problem binding to nis slave server

Any more info in /var/log/* and in dmesg

What I am getting at is this could be a protection security problem ... also firewall
iptables ?

You could also modify /etc/syslog.conf to log more messages.

Perhap you have already been down this track ?

keep us inform on progress if any

Jean-Pierre
Smile I will feel the difference
Huc_1
Honored Contributor

Re: problem binding to nis slave server

Me again I just did a searh on nis and found this .... http://www.geocities.com/ivanov_andrei/nis/#RHL.pam

perhaps, this will get you going.

Jean-Pierre

PS. I just gave the same link to an other linux forum post have a llok there it could develop into some usefull info for you.
Smile I will feel the difference
itai weisman
Super Advisor

Re: problem binding to nis slave server

hi,
thanks a lot for the answer,
there is nothing intresting in dmesg.
in /var/log/messages i have messages like
ypbind[11602]: broadcast: RPC: Timed out
and
ypbind: attempting to contact yp server failed
in both servers (master and client)

this article sais nothing about configuring red hat as NIS SLAVE.

another thing - i saw that in /var/log/messages the ip that ypbind try to connect thru is our second lan (i want it to send the broadcast in the other network) - how can i configure that?
itai
Alexander Chuzhoy
Honored Contributor

Re: problem binding to nis slave server

This should be route configuration.
Which interface is it's default gateway ?

You can always define static route with command:
route add -net x.x.x.x netmask x.x.x.x gw x.x.x.x
itai weisman
Super Advisor

Re: problem binding to nis slave server

and if i have two gateways (one for each interface?)
in this case the right gateway is configured
as default gateway.
still, i don't know what should i do to solve the problem of the binding between the client to te slave
itai
Alexander Chuzhoy
Honored Contributor

Re: problem binding to nis slave server

as for route you can always try the good old "ping" and "traceroute" commands.
As for NIS-did you define securenets?
itai weisman
Super Advisor

Re: problem binding to nis slave server

i did,
but i'm not sure i did it write
i've added to /var/yp/securenets the following lines -
hostname 127.0.0.1
255.255.255.0 network_address
(hostname is my hostname, it's in subnet class c, network address is 189.10.5.0)
Alexander Chuzhoy
Honored Contributor

Re: problem binding to nis slave server

This is from RedHat's manual:
NIS listens to all networks if the /var/yp/securenets file is blank or does not exist (as is the case after a default installation). One of the first things to do is put netmask/network pairs in the file so that ypserv only responds to requests from the proper network.

Below is a sample entry from a /var/yp/securenets file:

255.255.255.0 192.168.0.0

itai weisman
Super Advisor

Re: problem binding to nis slave server

this file is configured correctly...
i also tried to bind my client to the slave server using direct connection (not broadcast) by changing /etc/yp.conf into
domain mydomain server myslaveserver
and yet, it doesn't work
when i put instead of my linux slave server an hpux slave server - it does work.
thats why i am sure the configuration of my slave server is not right.
any ideas?