Solved

Can NIS client broadcast for server?

Posted on 1997-05-15
4
224 Views
Last Modified: 2010-03-18
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.
0
Comment
Question by:dtm
  • 2
  • 2
4 Comments
 

Author Comment

by:dtm
ID: 1584671
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
 

Accepted Solution

by:
jgr earned 70 total points
ID: 1584672
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
 

Author Comment

by:dtm
ID: 1584673
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
 

Expert Comment

by:jgr
ID: 1584674
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

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now