System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)

ProcedureHow to Revert to Maps Based on Old Source Files

  1. Become superuser or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Chapter 9, Using Role-Based Access Control (Tasks), in System Administration Guide: Security Services.

  2. Stop the NIS daemons.


    # svcadm disable network/nis/server:default
    
  3. Disable N2L.

    This command backs up and moves the N2L mapping file.


    # mv /var/yp/NISLDAPmapping backup_filename
    
  4. Set the NOPUSH environment variable so the new maps are not pushed by ypmake.


    # NOPUSH=1
    
  5. Make a new set of NIS maps that are based on the old sources.


    # cd /var/yp
    # make
    
  6. (Optional) Remove N2L versions of the NIS maps.


    # rm /var/yp/domainname/LDAP_*
    
  7. Start the NIS daemons.


    # svcadm enable network/nis/server:default