Operating System - HP-UX
1836605 Members
1854 Online
110102 Solutions
New Discussion

Combining two NIS domains into one

 
Andrew Kaplan
Super Advisor

Combining two NIS domains into one

Hi there --

We currently have two NIS domains, and I would like to combine them into one. The specifics of each and the plan that I had in mind are as follows:

The first domain has its NIS Master as well as two slave servers, while the second has one master and one slave server. While there are clients in the first domain, there are none in the second domain.

The plan that I had in mind was to take the Master NIS server of the second domain, and make it, as well as the existing slave NIS of the second domain, slave servers to the Master in the first domain.

What would be the best way of accomplishing this task? Thanks.

A Journey In The Quest Of Knowledge
3 REPLIES 3
Steven Schweda
Honored Contributor

Re: Combining two NIS domains into one

My NIS knowledge is old (and decaying), so no
bets on bestness, but I'd try something
like the following:

Merge the data from the master map data files
on Master-2 into the files on Master-1. I'd
expect things like "passwd" and "group" to
require some effort, while things like
"services" should be easy/trivial.

man ypinit

Run around to every system who might care,
and run ypinit (with a suitable option,
according to that system's new role), and/or
domainname. Probably want to set the new
domain name _before_ doing the ypinit (-s) on
Master-2 and Slave-2.
Hakki Aydin Ucar
Honored Contributor

Re: Combining two NIS domains into one

I only used NIS for limited users on 9000 servers. But you can find lots of docs. for example this one:

http://docs.hp.com/en/B1031-90043/ch02.html
CowBoy
Regular Advisor

Re: Combining two NIS domains into one

First of all
install hp-apa and config your server...