Sun Identity Manager 8.1 Resources Reference

Chapter 4 Sun Access Manager Realm

Identity Manager provides the Sun Java System Access Manager Realm resource adapter to support Sun™ Java System Access Manager running in Realm mode.

Adapter Details

This adapter is defined in the com.waveset.adapter.SunAccessManagerRealmResourceAdapter class.

Note –

Resource Configuration Notes

You can configure only one Access Manager server (whether in Realm mode or in Legacy mode). You can define multiple resources if you provision to different realms.

The Identity Server Policy Agent is an optional module that you can use to enable single sign-on (SSO). You can obtain this Policy Agent from the following location:

Note –

Do not attempt to follow the Policy Agent installation or configuration procedures if this product is not being used in your environment.

For more information about Policy Agents, see:

You must install the Identity Server Policy Agent on the same server where Identity Manager is installed.

To install the Policy Agent, follow the installation instructions provided with the Policy Agent, and then perform the following tasks:

ProcedureSetting Up Policy Agent

  1. Edit the file.

  2. Create a policy in Sun Java System Access Manager.

Editing the File

You must modify the file to protect Identity Manager. This file is located in the AgentInstallDir/config directory.

ProcedureTo Edit the File

  1. Locate the following lines in the file.

    com.sun.identity.agents.config.cookie.reset.enable = false[0] =
    com.sun.identity.agents.config.cookie.reset.domain[] =
    com.sun.identity.agents.config.cookie.reset.path[] =

    Edit these lines as follows.

    com.sun.identity.agents.config.cookie.reset.enable = true[0] = AMAuthCookie
    com.sun.identity.agents.config.cookie.reset.domain[0] =
    com.sun.identity.agents.config.cookie.reset.path[0] = /
  2. Add the following lines.[1] = iPlanetDirectoryPro
    com.sun.identity.agents.config.cookie.reset.domain[1] =
    com.sun.identity.agents.config.cookie.reset.path[1] = /
  3. Locate the following lines.

    com.sun.identity.agents.config.profile.attribute.fetch.mode = NONE
    com.sun.identity.agents.config.profile.attribute.mapping[] =

    Edit these lines as follows

    com.sun.identity.agents.config.profile.attribute.fetch.mode = HTTP_HEADER
    com.sun.identity.agents.config.profile.attribute.mapping[uid] = sois_user
  4. You must restart the web server for your changes to take effect.

Creating a Policy in Sun Java System Access Manager

ProcedureTo Create a Policy

  1. From within the Sun Java System Access Manager application, create a new policy named IDMGR (or something similar) with the following rules:

    Service Type  

    Resource Name  


    URL Policy Agent 


    Allow GET and POST actions

    URL Policy Agent 


    Allow GET and POST actions

  2. Assign one or more subjects to the IDMGR policy.

Identity Manager Installation Notes

This section provides installation and configuration notes for the Sun Java System Access Manager Realm resource adapter and the Policy Agent.

General Configuration

Use the following procedure to install and configure the resource adapter.

ProcedureInstalling and Configuring the Access Manager Realm Resource Adapter

  1. Follow the instructions provided in the appropriate version of the Sun JavaTM System Access Manager Developer’s Guide to build the client SDK from the Sun Access Manager installation.

  2. Extract the and amclientsdk.jar files from the war file that is produced.

  3. Put a copy of the in the following directory:

  4. Place a copy of amclientsdk.jar in the following directory:

  5. Add the amclientsdk.jar file to the server class path.

  6. Restart the Identity Manager application server.

  7. After copying the files, you must add the Sun Java System Access Manager Realm resource to the Identity Manager resources list. Add the following value in the Custom Resources section of the Configure Managed Resources page.


Login Module

You must modify the administrator and user login modules so the Sun Java System Access Manager login modules will be listed first.

Note –

You must first configure a Sun Java System Access Manager realm resource before performing the following procedure.

ProcedureModifying the Administrator and User Login Modules

  1. From the Identity Manager Administrator Interface menu bar, select Security.

  2. Click the Login tab.

  3. Click the Manage Login Module Groups button, located at the bottom of the page.

  4. Select the Login Module to modify. For example, select Default Identity System ID/Pwd Login Module Group.

  5. In the Assign Login Module select box, select Sun Access Manager Realm Login Module.

  6. When a new Select option displays next to the Assign Login Module option, select the appropriate resource.

  7. When the Modify Login Module page displays, edit the displayed fields as needed, and then click Save. The Modify Login Module Group is displayed again.

  8. Specify Sun Access Manager Realm Login Module as the first resource in the module group, and then click Save.

  9. Log out of Identity Manager

Security Notes

This section provides information about supported connections and authorization requirements needed to perform basic tasks.

Supported Connections

Identity Manager uses SSL to communicate with this adapter.

Required Administrative Privileges

The user name that connects to the Sun Java System Access Manager must be assigned permissions to add or modify user accounts.

Provisioning Notes

The following table summarizes the provisioning capabilities of the adapter.



Enable/disable account 


Rename account 


Pass-through authentication 

Yes. Through the Policy Agent. 

Before/after actions 


Data loading methods 

  • Import directly from resource

  • Reconcile with resource

Account Attributes

The following table lists the Sun Java System Access Manager user account attributes supported by default. All attributes are optional, unless noted in the description.

Resource User Attribute  

Resource Attribute Type  




Required. Unique user ID for the user. 



Required. User’s full name 



User’s first name 



User’s last name 



User’s email address 



User’s employee number 



User’s telephone number 



User’s home address 



Date and time the user’s account expires 



List of aliases for the user 



URL the user is redirected to when authentication is successful 



URL the user is redirected to when authentication is unsuccessful 



List of roles to which user is subscribed 



List of groups to which user is subscribed 

Resource Object Management

Identity Manager supports the following Sun Java System Access Manager objects:

Resource Object  

Features Supported  

Attributes Managed  


list, create, update, delete 

name, user members


list, create, update, delete 

name, user members

Filtered Roles 

list, create, update, delete 

name, nsrolefilter

Identity Template

The default identity template is $accountId$.

Sample Forms

This section lists the sample forms that are built-in and available for the Sun Java System Access Manager Realm resource adapter.


Also Available



Use the Identity Manager debug pages to set trace options on the following class: