JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Working With Naming and Directory Services in Oracle Solaris 11.1     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Part I About Naming and Directory Services

1.  Naming and Directory Services (Overview)

2.  Name Service Switch (Overview)

About the Name Service Switch

Databases and Sources for the Name Service Switch

Search Criteria for the Name Service Switch

Status Messages for the Name Service Switch

Switch Action Options for the Name Service Switch

Default Search Criteria for the Name Service Switch

What If the Syntax Is Wrong?

auto_home and auto_master

timezone and the Name Service Switch

keyserv and publickey Entries in the Name Service Switch

Managing the Name Service Switch

How to Use a Legacy nsswitch.conf File

How to Switch the Source for a Database

How to Change the Source for All Naming Databases

DNS and Internet Access

Name Service Switch and Password Information

3.  Managing DNS (Tasks)

4.  Setting Up Oracle Solaris Active Directory Clients (Tasks)

Part II NIS Setup and Administration

5.  Network Information Service (Overview)

6.  Setting Up and Configuring NIS (Tasks)

7.  Administering NIS (Tasks)

8.  NIS Troubleshooting

Part III LDAP Naming Services

9.  Introduction to LDAP Naming Services (Overview)

10.  Planning Requirements for LDAP Naming Services (Tasks)

11.  Setting Up Oracle Directory Server Enterprise Edition With LDAP Clients (Tasks)

12.  Setting Up LDAP Clients (Tasks)

13.  LDAP Troubleshooting (Reference)

14.  LDAP Naming Service (Reference)

15.  Transitioning From NIS to LDAP (Tasks)

Glossary

Index

Managing the Name Service Switch

When you change a machine's naming service, you need to modify that machine's name service switch information accordingly. For example, if you change a machine's naming service from files to NIS, you need to configure the name service switch to use NIS.

How to Use a Legacy nsswitch.conf File

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Copy the nsswitch.conf file to a new system.

    Make sure to name the file /etc/nsswitch.conf.

  3. Load the information from the file into the SMF repository.
    # nscfg import -f svc:/system/name-service/switch:default
  4. Refresh the service for the name service switch.
    # svcadm refresh name-service/switch

How to Switch the Source for a Database

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Change the source definition for the selected database.

    In this example, the database search order is first files, then nis.

    # svccfg -s system/name-service/switch 
    svc:/system/name-service/switch> setprop config/host = astring: "files nis"
    svc:/system/name-service/switch> quit
  3. Refresh service for the name service switch.
    # svcadm refresh name-service/switch

How to Change the Source for All Naming Databases

  1. Become an administrator.

    For more information, see How to Use Your Assigned Administrative Rights in Oracle Solaris 11.1 Administration: Security Services.

  2. Change the config/default property.

    This property should use the source definition that is most common. In this example, the database search order is first files, then nis.

    # svccfg -s system/name-service/switch 
    svc:/system/name-service/switch> setprop config/default = astring: "files nis"
    svc:/system/name-service/switch> quit
  3. (Optional) Change the properties for individual databases.

    Use this command to change the source definition for any database that does not use the order that is selected in the config/default property.

    # svccfg -s system/name-service/switch 
    svc:/system/name-service/switch> setprop config/host = astring: "files dns nis"
    svc:/system/name-service/switch> quit
  4. Refresh the service for the name service switch.
    # svcadm refresh name-service/switch