Solved

Can NIS client broadcast for server?

Posted on 1997-05-15
4
226 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
ACK Attack 5 58
Layer 7 Transparent cookie checker 22 60
Cpanel and Mail logs 1 48
Linux : can't create transaction lock error 1 59
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…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

911 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

21 Experts available now in Live!

Get 1:1 Help Now