Solved

Can NIS client broadcast for server?

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
UPD maximums on Red Hat 6 115
Convert Routes to Linux (CENTOS 7.0) 3 99
IPA client Config problems 2 197
How to Edit Files in Linux 6 110
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

803 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