System Administration Guide: Naming and Directory Services (NIS+)

Populating the New NIS+ Subdomain's Tables

After you have created a new domain, you need to populate its master server's standard NIS+ tables. You use the same procedure to populate the new master server's tables as you used to populate the root master server's tables. The major difference is that the nispopulate script is run on the new master server instead of on the root master server. The domain names and file paths or NIS servers' names may change as well.

This example shows the tables of the new domain, sales.doc.com., being populated.

Prerequisites to Populating a NIS+ Subdomain's Tables

Before you run the nispopulate script to populate the new master server's tables, be sure the following prerequisites have been met.


Note –

The nispopulate script can fail if there is insufficient /tmp space on the system. To keep this from happening, you can set the environment variable TMPDIR to a different directory. If TMPDIR is not set to a valid directory, the script uses the /tmp directory instead.


Populating the NIS+ Master Server Tables

Since this procedure is essentially the same as the procedure shown in How to Populate the NIS+ Root Master Server Tables, this example shows you only what you would type to populate the tables of the new sales.doc.com. domain. For more information about this procedure, see How to Populate the NIS+ Root Master Server Tables.


Note –

This script should be run on the new domain's master server, not the root master server.


The alternate methods of populating the master server tables on the new master server are:

The information that you need to gather depends upon whether you are populating from files or from NIS maps.

Whichever method you choose should be executed in a scrolling window as the script's output might otherwise scroll off the screen.

How to Populate the NIS+ Tables From Files

If populating from files, you need the following information.

To populate master server tables from files, type the following commands.


client2# nispopulate -F -p /nis+files -d sales.doc.com.
NIS+ domain name : sales.doc.com.
Directory Path : /nis+files
Is this information correct? (type 'y' to accept, 'n' to change

How to Populate the NIS+ Tables From NIS Maps

If populating from NIS maps, you need the following information.


Note –

The NIS domain name is case-sensitive, while the NIS+ domain name is not.


To populate master server tables from NIS maps, type the following commands.


client2# nispopulate -Y -d sales.doc.com. -h businessmachine -a 
IP_addr_of_NIS_server -y business.doc.com.
NIS+ Domain name : sales.doc.com.
NIS (YP) domain : business.doc.com.
NIS (YP) server hostname : businessmachine
Is this information correct? (type 'y' to accept, 'n' to change)

See How to Populate the NIS+ Root Master Server Tables for additional information.