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

About the Name Service Switch

Format of the nsswitch.conf File

Search Criteria

Switch Status Messages

Switch Action Options

Default Search Criteria

What if the Syntax is Wrong?

Auto_home and Auto_master

Timezone and the Switch File

Comments in nsswitch.conf Files

Keyserver and publickey Entry in the Switch File

nsswitch.conf Template Files

Default Name Service Switch Template Files

nsswitch.conf File

Selecting a Different Configuration File

Modifying the Name Service Switch

Enabling an NIS+ Client to Use IPv6 Prior to the Solaris 10 7/07 Release

How to Enable an NIS+ Client to Use IPv6

Ensuring NIS-NIS+ Compatibility With +/- Syntax

Name Service Switch File and Password Information

Part II NIS+ Setup and Configuration

2.  NIS+: An Introduction

3.  NIS+ Setup Scripts

4.  Configuring NIS+ With Scripts

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

Selecting a Different Configuration File

When you change a machine's naming service, you need to modify that machine's switch file accordingly. For example, if you change a machine's naming service from NIS to NIS+, you need to install a switch file appropriate for NIS+. You change switch files by copying the appropriate template file to nsswitch.conf.

If you are installing NIS+ on a machine using the NIS+ installation scripts, the NIS+ template script is copied to nsswitch.conf for you. In this case, you do not have to configure the switch file unless you want to customize it.

Before proceeding to change switch files, make sure the sources listed in the file are properly set up. In other words, if you are going to select the NIS+ version, the client must eventually have access to NIS+ service; if you are going to select the local files version, those files must be properly set up on the client.

Modifying the Name Service Switch

To change to a switch file, follow these steps:

  1. Log in to the client as superuser.
  2. Copy the alternate file appropriate for the machine's naming service over the nsswitch.conf file.

    NIS+ Version (done automatically for you by NIS+ scripts)

    client1# cd /etc
    client1# cp nsswitch.nisplus nsswitch.conf

    NIS Version

    client1# cd /etc
    client1# cp nsswitch.nis nsswitch.conf

    Local /etc Files Version

    client1# cd /etc
    client1# cp nsswitch.files nsswitch.conf
  3. Reboot the machine.

    The nscd naming service cache daemon caches switch information. Some library routines do not periodically check the nsswitch.conf file to see whether it has been changed. You must reboot the machine to make sure that the daemon and those routines have the latest information in the file.