Solved

NIS+ and YP compatibility

Posted on 1997-05-05
2
249 Views
Last Modified: 2013-12-16

Hi,
      I am tring to set up a Sol2.5.1 machine, to be both a YP client
      to one domain, eso1 and a NIS+ master of another domain,
      secure.eso.org. All works well except yp and nis+ both look
      in the same place for their domain name, the value returned
      from sysinfo. This screws one or the other, dependant on whats
      been set in /etc/defaultdomain. And if this has been changed after
      say nis+ has been set, for yp to use, then nis+ will fail.
      
      Is it possible to change where yp or nis+ look for this info.
      Is there any source available for this so I can change it?

      Ideas?
      
Kind regards,

Simon.


--

------------------------------------------------------------------
Simon J Loewenthal      -       ESO Helpdesk
sloewent@eso.org      -      European Southern Observatory (ESO)
www.eso.org/it            -      Karl-Schwarzschild-Strasse 2
++49-89-320-06333      -       D-85748 Garching bei Muenchen
                  -      Germany
------------------------------------------------------------------
0
Comment
Question by:sloewent
[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 Comments
 

Author Comment

by:sloewent
ID: 1812130
Adjusted points to 150
0
 
LVL 2

Accepted Solution

by:
pxh earned 150 total points
ID: 1812131
Well, I have some ideas but never tried it. If it works fine, if no just reject, OK?

Let's assume for simplcity that you want the yp use a different domain from what is entered in /etc/defaultdomain. Go to /var/yp or where wever you installed the yp config files. Look into the Makefile there is a line

DOM = `domainname`

so you can edit this line and specify the domainname you want there.

Next look into the /var/yp subdirectories, you will find directories named like you yp-domain there. Try to rename them. E.g. our domain is xmm.mpg.de and there exist a xmm.mpg.de directory directly on /var/yp and one in /var/yp/binding.

Next go to /etc/init.d and look into the file yp. Also there the domainname is taken queried (domain=`domainname`). Again, you may have to change this.

There is nothing else I can think to do. But as I said, I am a bit guessing, since I never tried this.

Good luck,

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

0

Featured Post

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
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…
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…

632 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