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)

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)

Password Files and Namespace Security

Administering NIS Users

How to Add a New NIS User to an NIS Domain

Setting User Passwords

NIS Netgroups

Working With NIS Maps

Obtaining Map Information

Changing a Map's Master Server

How to Change a Map's Master Server

Modifying Configuration Files

How to Modify Configuration Files

Modifying and Using /var/yp/Makefile

Working With the Makefile

Changing Makefile Macros/Variables

Modifying Makefile Entries

How to Modify /var/yp/Makefile to Use Specific Databases

How to Modify the Makefile to Delete Databases

Updating and Modifying Existing Maps

How to Update Maps Supplied With the Default Set

Maintaining Updated Maps

Propagating an NIS Map

Using the cron Command for Map Transfers

Using Shell Scripts With cron and ypxfr

Directly Invoking the ypxfr Command

Logging ypxfr Activity

Modifying Non-Default Maps

Using the makedbm Command to Modify a Non-Default Map

Creating New Maps From Text Files

Adding Entries to a File-Based Map

Creating Maps From Standard Input

Modifying Maps Made From Standard Input

Working With NIS Servers

Binding to a Specific NIS Server

How to Set a Machine's NIS Domain Name

How to Configure Machine Host Name and Address Lookup Through NIS and DNS

Turning Off NIS Services

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

Working With NIS Servers

The following procedures show ways to modify the NIS configuration by binding to a specific NIS server, setting the NIS domain name, forwarding host lookups to DNS, and by turning off the NIS services.

Binding to a Specific NIS Server

Use the following steps to bind to an NIS server that you specify. For more information, see the ypinit(1M), ypstart(1M), and svcadm(1M) man pages.

  1. Add the host name of the NIS server and its IP address to the /etc/hosts file.

  2. Verify that the NIS domain name is set.

    # domainname
    example.com
  3. Prompt for the NIS server host name.

    # /usr/sbin/ypinit -c
    Server name: Type the NIS server host name
  4. Restart the NIS services by performing one of the following steps:

    • For the services to persist across reboots, run the svcadm command.

      # svcadm enable svc:/network/nis/client
    • For the services to persist until reboot only, run the ypstop and ypstart commands.

      # /usr/lib/netsvc/yp/ypstop
      # /usr/lib/netsvc/yp/ypstart

How to Set a Machine's NIS Domain Name

To change the NIS domain name of a machine, use the following procedure.

  1. Become an administrator.

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

  2. Define the NIS domain name.
    # domainname research.example.com
  3. Update and run the domain name services.
    # svccfg -s nis/domain:default refresh
    # svcadm enable nis/domain
  4. Set up the machine as an NIS client, a slave server, or a master server.

    See Chapter 6, Setting Up and Configuring NIS (Tasks) for details.

How to Configure Machine Host Name and Address Lookup Through NIS and DNS

Typically, NIS clients are configured with the nsswitch.conf file to use only NIS for machine name and address lookups. If this type of lookup fails, an NIS server can forward these lookups to DNS.

  1. Become an administrator.

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

  2. Add the YP_INTERDOMAIN key.

    The two map files, hosts.byname and hosts.byaddr must include the YP_INTERDOMAIN key. To test this key, edit /var/yp/Makefile and modify the following lines.

    #B=-b
    B=

    to

    B=-b
    #B=

    makedbm will now start with the -b flag when it makes the maps, and the YP_INTERDOMAIN key will be inserted into the ndbm files.

  3. Run the make command to rebuild maps.
    # make hosts
  4. Check that DNS name servers are set properly.

    The following command lists all of the IP addresses for the DNS name servers:

    # svcprop -p config/nameserver network/dns/client
  5. To enable DNS forwarding, restart each server.
    # svcadm restart network/nis/server:instance

    In this implementation of NIS, the ypserv daemon automatically starts with the -d option to forward requests to DNS.

Turning Off NIS Services

If the ypserv daemon on the NIS master is disabled, you can no longer update any of the NIS maps.