Solved

Can NIS client broadcast for server?

Posted on 1997-05-15
4
229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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