Solaris CIFS Administration Guide

ProcedureHow to Import User Mappings From a Rule-Mapping File

The idmap import command enables you to import a set of rule-based user mappings that are stored in a file.

The idmap supports these file formats:

  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. Import the user mappings from standard input or from a file.


    # idmap import [-F] [-f file] format
    

    For example, suppose that you have a file called myusermaps that uses the usermap.cfg format to specify the following user name mappings:


    # cat myusermaps
    dana@example.com == dana
    danab@example.com => dana

    Use one of the following commands to add these mappings to the database:

    • # cat myusermaps | idmap import usermap.cfg

    • # idmap import -f myusermaps usermap.cfg