Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

NIS+ and YP compatibility

Posted on 1997-05-05
2
Medium Priority
?
254 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 450 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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…
Suggested Courses

670 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