Solved

NIS+ and YP compatibility

Posted on 1997-05-05
2
242 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
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now