Solved

Major Solaris NIS Problems

Posted on 1997-03-24
4
408 Views
Last Modified: 2013-12-16
We have a bunch of Solaris 2.5.1 servers that
are experiencing major NIS problems.  We have installed
NSKIT 1.2 (with appropriate patches).  We have all OS patches installed.  We are having problems in these areas:
- Autmount is not working properly (same subnet, fast machines) - it timesout mounting a share
- Logging in takes a long time to authenticate (Pc and UNIX side) and sometime authenticates correct passwords incorrectly.
- PC users cannot use NIS to do hostname resolution using a winsock application.
- Ypbind loses its binding to the domain often.
Any ideas?
0
Comment
Question by:saintjoes
[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
  • 3
4 Comments
 
LVL 2

Expert Comment

by:pxh
ID: 1811951
I have a very similar config as you (a NIS master, running 2.5.1 and having the NISKIT installed). I do not have your problems. Let me know more details about your config, the above is too common.

Only answer now: for hostname resolution you usually use a DNS service. You can do it within your NIS domain also, but I have not herad that there is NIS for PC's...

Peter (pxh@mpe-garching.mpg.de)

0
 

Author Comment

by:saintjoes
ID: 1811952
We have NIS setup to DNS forwarding.  The client PC's are
using NIS as thier host name resolution.  The only odd thing in our setup is a SunOS master (these 2.5.1 machines are actually slaves, but are being used as NIS servers).
We have duplicated this on *3* Solaris 2.5.1 machines!



0
 
LVL 2

Accepted Solution

by:
pxh earned 200 total points
ID: 1811953
Again, there is no obvious problem. We also had here a SunOS
NIS master running successfully for quite a while. Now I have one master + one slave under Solaris 2.5(.1) + mixed (Solaris + SunOS) clients.

Hmm, it is difficult do help you, things have to be verified step by step. I hope I am not bothering you with trivialities, but just to make shure: did you activate the right /etc/nsswitch.conf file? I.e. did you copy nsswitch.nis to nsswitch.conf an all systems?

So some more questions: do you have automatic or static NIS server recognition? I.e. does ypbind run with -broadcast options? How did you install the clients? Did you run ypinit -c and did you then specify all master and slaves? I found that methode more stable then running dynamic binding (ypbind -broadcast).

Then you have to find for a given client (a slave might be regarded as a client) which is his master, use the ypwhich command on that machine. Try to isolate the problem, e.g. shut down all slaves and run with one master only.

To the slaves: did you add the crontab entries? Here an example from mine:

#
# run the ypxfr's to syncronize aldebaran (slave) with orion (master)
#
0 * * * * /usr/lib/netsvc/yp/ypxfr_1perhour
0 1 * * * /usr/lib/netsvc/yp/ypxfr_1perday
0 2,14 * * * /usr/lib/netsvc/yp/ypxfr_2perday

You might have to edit the ypxfr scripts to support the tables you need.

Then your automount problem: if you enter "ypcat auto.direct" do you get the correct listing? I had to add en entry to /var/yp/Makefile for the support of the auto.direct file. Also check in /etc/nsswitch.conf for the line "automount:  nis files" to be present.

Then the name resolution prob: look into /var/yp/Makefile (of your master) and make shure the the line "B=-b" is active. Does the name resolution work at all, i.e. does nslookup <address> work?

Last not least are the right daemons running? On the master (Solaris):
/usr/lib/netsvc/yp/ypserv -d
/usr/lib/netsvc/yp/ypbind
/usr/lib/netsvc/yp/ypxfrd
/usr/lib/netsvc/yp/rpc.yppasswdd -D

on the slave(s):
/usr/lib/netsvc/yp/ypserv -d
/usr/lib/netsvc/yp/ypbind

and on the clients:
/usr/lib/netsvc/yp/ypbind

Hope you get any idea from that,

Peter (pxh@mpe-garching.mpg.de)

0
 
LVL 2

Expert Comment

by:pxh
ID: 1811954
I am confused...
you wrote in the comment to my answer:

"Another note: Clients wore fine if they use the SunOS machine as their nis master." and "But all clients are using the solaris machine as their master."

I conclude that you switched between master and slave server and found out that only the slave server give problems.

Question: does NIS work properly on the slave(s) itselve? Is there a difference between those slave(s)?

Again: I am not nervous about your master being a SunOS system. I had this situation here too for several years (also with previous Solaris versions).

What did you precisly do to "We have duplicated this on *3* Solaris 2.5.1 machines!"? "this" meaning the slave service.

How does your /etc/auto_master look like?


Peter (pxh@mpe-garching.mpg.de)

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

752 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