Can NIS client broadcast for server?

I am using Red Hat 4.1, with yp-clients 2.2. If I just
specify a yp server in /etc/yp.conf, everything works fine.
If I run ypbind, it will broadcast and find a yp server for
the domain, but none of the applications get the NIS data.
Is there a way to broadcast for a yp server? Currently it's
a problem when the server in /etc/yp.conf is unavailable.
dtmAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dtmAuthor Commented:
If I run ypbind and also specify a server in /etc/yp.conf:

  domain name broadcast
  ypserver servername

client programs get the NIS data from the specified server, but
the server ypbind finds may be a different one.
0
jgrCommented:
First you should check if the server, that you are broadcasting for, accepts a connection from your host. Several versions are out there, currently im using ypserv-1.1.3 with securenets.
Securenets is a file that usually resides in /var/yp and defines the clients, who are able to access the YP-Server.
The 2nd way is, that the server uses a tcp-wrapper, so u should check the hosts.allow and hosts.deny files.

It may help if u run ypserv in debugging mode:
ypserv -d > /etc/yp.host.log 2>&1 & .
This way u can check whats going on.

Another problem that may arise is, that somehow some versions of ypbind cant talk to specific versions of ypservers. All u can do about this, is to try several combinations of ypbind and ypserv.
The best way to find out if ypbind is able to connect is to run it in debugging mode too :) .

Hope that helps abit, if not, contact me via email.
So long
Jan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dtmAuthor Commented:
I guess I need to clarify. We have several yp servers. If I do
not use ypbind, and I specify any one of the servers in the
LINUX machine's /etc/yp.conf file, all yp client functions
work. If I instead specify 'domain ourname broadcast' in
/etc/yp.conf and run ypbind, ypbind finds a yp server just
fine. I verify this by running ypwhich. But the NIS data for
users and such does not appear. If I do both those things,
then I get the NIS data from the server specified in
/etc/yp.conf, and ypbind finds a server (not necessarily the
same server). The servers are not refusing to serve the data
to the LINUX machine. There just seems to be no connection
between ypbind and the client processes that use NIS data.
0
jgrCommented:
Did u run ypbind in debugging mode ?
Some versions of ypbind (i had this problem) cant get data from
the server, although they get a connection.
The debugging output says something like :
Received Signal 11.
Received signal 15....
(dont remember the signal numbers exactly now)

The debugging output of ypserv says, that there where lock errors, when this specific version of ypbind connects to the server. Which libc are u using ?
There is a new version of ypclients for all libc's >= 5.4.21.
If u compile these, everything should work.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux Networking

From novice to tech pro — start learning today.