Go to main content

Working With Oracle® Solaris 11.3 Directory and Naming Services: LDAP

Exit Print View

Updated: September 2018
 
 

How to Revert to Maps Based on DIT Contents

Back up the old NIS source files before performing this procedure.

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.3.

  2. Stop the NIS daemons.
    # svcadm disable network/nis/server:default
  3. Update the maps from the DIT.
    # ypserv -r

    Wait for ypserv to exit.

  4. Disable N2L.
    # mv /var/yp/NISLDAPmapping backup-filename

    This command backs up and moves the N2L mapping file.

  5. Regenerate the NIS source files.
    # ypmap2src
  6. Manually check that the regenerated NIS source files have the correct content and structure.
  7. Move the regenerated NIS source files to the appropriate directories.
  8. (Optional) Remove the N2L versions of the mapping files.
    # rm /var/yp/domain-name/LDAP_*
  9. Start the DNS and NIS service.
    # svcadm enable network/dns/client:default
    # svcadm enable network/nis/server:default