Solaris CIFS Administration Guide

ProcedureHow to Remove a Directory-Based Name Mapping From a User Object

  1. Become superuser, assume an equivalent role, obtain the solaris.admin.idmap.rules RBAC authorization, or use the “Idmap Service Management” RBAC profile.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services. To configure a role with the Primary Administrator profile, see Chapter 2, Working With the Solaris Management Console (Tasks), in System Administration Guide: Basic Administration.

  2. View the directory-based name mapping information for the specified user.


    # idmap get-namemap username
    
  3. Remove the user name stored in the user object of AD or native LDAP.

    • Remove the Solaris name from the AD object for the specified user.


      # idmap unset-namemap winuser:username@domain-name
      

      For example, the following command removes the Solaris name from the AD object for Windows user danab@example.com:


      # idmap unset-namemap winuser:danab@example.com
      
    • Remove the Windows name from the native LDAP object for the specified user.


      # idmap unset-namemap unixuser:username
      

      For example, the following command removes the Windows name from the native LDAP object for Solaris user dana:


      # idmap unset-namemap unixuser:dana