JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
System Administration Guide: Naming and Directory Services (NIS+)
search filter icon
search icon

Document Information

Preface

Part I About Naming and Directory Services

1.  Name Service Switch

Part II NIS+ Setup and Configuration

2.  NIS+: An Introduction

3.  NIS+ Setup Scripts

4.  Configuring NIS+ With Scripts

NIS+ Configuration Overview

NIS+ and the Service Management Facility

Using svcadm With rpc.nisd -x

Modifying the /lib/svc/method/nisplus File

Creating a Sample NIS+ Namespace

Summary of NIS+ Scripts Command Lines

Setting Up NIS+ Root Servers

Prerequisites to Running nisserver to Set Up a Root Server

How to Create an NIS+ Root Master Server

How to Change Incorrect Information When Setting Up NIS+

How to Set Up a Multihomed NIS+ Root Master Server

Populating NIS+ Tables

Prerequisites to Running nispopulate to Populate Root Server Tables

How to Populate the NIS+ Root Master Server Tables

Setting Up NIS+ Client Machines

How to Initialize a New NIS+ Client Machine

Creating Additional NIS+ Client Machines

Initializing NIS+ Client Users

How to Initialize an NIS+ User

Setting Up NIS+ Servers

Configuring a Client as an NIS+ Server

How to Configure an NIS+ Server Without NIS Compatibility

How to Configure an NIS+ Server With NIS Compatibility

How to Configure an NIS+ Server With DNS Forwarding and NIS Compatibility

Creating Additional NIS+ Servers

Creating an NIS+ Root Replica Server

How to Create an NIS+ Root Replica

How to Set Up Multihomed NIS+ Replica Servers

Creating an NIS+ Subdomain

How to Create a New Non-Root NIS+ Domain

Creating Additional NIS+ Domains

Populating the New NIS+ Subdomain's Tables

Prerequisites to Populating a NIS+ Subdomain's Tables

Populating the NIS+ Master Server Tables

How to Populate the NIS+ Tables From Files

How to Populate the NIS+ Tables From NIS Maps

Creating NIS+ Subdomain Replicas

How to Create an NIS+ Replica

Initializing NIS+ Subdomain Client Machines

How to Initialize an NIS+ Subdomain Client Machine

Initializing an NIS+ Subdomain Client Users

How to Initialize an NIS+ Subdomain User

Summary of Commands for the Sample NIS+ Namespace

5.  Setting Up the NIS+ Root Domain

6.  Configuring NIS+ Clients

7.  Configuring NIS+ Servers

8.  Configuring an NIS+ Non-Root Domain

9.  Setting Up NIS+ Tables

Part III NIS+ Administration

10.  NIS+ Tables and Information

11.  NIS+ Security Overview

12.  Administering NIS+ Credentials

13.  Administering NIS+ Keys

14.  Administering Enhanced NIS+ Security Credentials

15.  Administering NIS+ Access Rights

16.  Administering NIS+ Passwords

17.  Administering NIS+ Groups

18.  Administering NIS+ Directories

19.  Administering NIS+ Tables

20.  NIS+ Server Use Customization

21.  NIS+ Backup and Restore

22.  Removing NIS+

23.  Information in NIS+ Tables

24.  NIS+ Troubleshooting

A.  NIS+ Error Messages

About NIS+ Error Messages

Common NIS+ Namespace Error Messages

B.  Updates to NIS+ During the Solaris 10 Release

Solaris 10 and NIS+

Glossary

Index

Summary of Commands for the Sample NIS+ Namespace

Table 4-4 summarizes the actual commands that you typed to create the sample namespace. The prompt preceding each command indicates on which machine the command should be typed.

Table 4-4 Creating the Sample NIS+ Namespace: Command Summary

Tasks
Commands
Set environment path to include /usr/lib/nis – C shell or Bourne shell.
# setenv PATH $PATH:/usr/lib/nis

or

# PATH=$PATH:/usr/lib/nis; export PATH

Optionally configure Diffie-Hellman key length.
master1# nisauthconf dh640-0 des
Create root master server for doc.com. domain.
master1# nisserver -r -d doc.com.
Populate the root master server's NIS+ tables – from files or from NIS maps.
master1# nispopulate -F -p /nis+files -d doc.com.

or

master1# nispopulate -Y -d doc.com. -h salesmaster -a \ 172.31.58.111 -y sales.doc.com.

Add additional members to the admin group (2).
master1# nisgrpadm -a admin. doc.com. topadmin.doc.com. \ secondadmin.doc.com.
Make a checkpoint of the NIS+ database.
master1# nisping -C org_dir. doc.com.
Optionally configure Diffie-Hellman key length.
client1# nisauthconf dh640-0 des
Initialize an NIS+ client machine in the doc.com. domain.
client1# nisclient -i -d doc.com. -h master1
Initialize user as an NIS+ client.
client1user1prompt% nisclient -u
Convert NIS+ client to NIS+ server, without or with NIS compatibility or with NIS and DNS.
client1#rpc.nisd

or

client1# rpc.nisd -Y

or

client1# rpc.nisd -Y -B

Create a root replica.
master1# nisserver -R -d doc.com. -h client1
Convert a server to a non-root master server of the sales.doc.com. domain.
master1# nisserver -M -d sales.doc.com. -h client2
Populate the new master server's NIS+ tables – from files or from NIS maps.
client2# nispopulate -F -p /nis+files -d sales.doc.com.

or

client2# nispopulate -Y -d sales.doc.com. -h \ businessmachine -a 172.31.58.242 -y business.doc.com.

Create a master server replica.
client2# nisserver -R -d sales.doc.com. -h client3
Initialize an NIS+ client in the sales.doc.com. domain.
subclient1# nisclient -i -d sales.doc.com. -h client2
Initialize user as an NIS+ client.
subclient1user2prompt% nisclient -u