Configuring Access Manager for UserApp and SAML

Configuring Access Manager for UserApp and SAML


If the IDM User Application is installed, it is often in a larger context. One of the common requirements is to integrate User Application or specific parts into a portal, granting the users a single sign-on experience. Another common requirement is a strong authentication, e.g., via a certificate login to the portal.

Leveraging the power of Novell Access Manager and SAML, the solution described in this article makes true single sign-on capability available to any part of User Application, with any form of authentication method possible.

This document assumes that you are familiar with the Novell Access Manager configuration. If you are not, please refer to the Novell Access Manager documentation:

How it Works

When the user first accesses the User Application, he must authenticate to the IDP, if he hasn't already done so. After a successful authentication, the Access Gateway will inject a SAML assertion into HTTP header of the Get request. User application will recognize this and, if the user is not already authenticated, will use the SAML assertion to authenticate the user to the user store via LDAP. For this to work, the NMAS method "SAML Assertion" must be installed and correctly configured on the user store, as User Application uses this method for a successful authentication.


This document is designed for use with the following as minimum software requirements:

  • Access Manager 3.0.1
  • User Application 3.5.1

Access Manager and User Application must be configured to use the same user store. The user store must be eDirectory. The NMAS method must be present and configured on the user store (see the User Store section at the end of this document). The method described in this document will work regardless of the authentication method used by Access Manager.

Access Manager

Access Gateway Resources

  1. Create a new path-based resource for /IDM.


  2. Correct the server port and enable Forwarding of Encoding Header.


  3. Under the HTTP Options for the Path-Based Multi-Homing tab, enable X-Forward-For.


  4. Create two new Protected Resources, if you use username and password. If you don't use a password, e.g. because you use a certificate login, you do not need the second resource UserAppForgotPassword.



  1. The base resource for User Application is shown below.


  2. Assign an Authorization Policy to this resource.


  3. Assign Identity Injection policies to inject the Access Manager Session Cookie and HTTP_AUTHORIZATION header.


  4. The UserAppForgotPassword resource is a public resource and will have the following paths:


  5. Add a Bypass PIN for the whole of User Application.



Below are the two policies required for the Identity Injection:



If Access Manager uses Username/Password as its authentication method, you should use the following methods for a smooth user experience.

Password Expiry Handling

In the IDP Contracts, modify the Password Expiry URL to be:< RETURN_URL>&store=< STOREID>&dn=< USERID>&action=expire

This will populate certain values to aid the user experience. For example, <USERID> will be replaced with the user DN, such as cn=jbloggs,ou=unit,ou=location,o=organization).

Forgot Password Link

An example of the JSP code for a link to use of the Forgot Password feature on the Access Manager login page is shown below:

< a href="javascript&colon;document.fpwdForm1.submit();" onmouseover="window.status='Forgot Password';return true;">Forgot Password Link< /a>
< form name="fpwdForm1" method="POST" action="">
<input type="hidden" name="idp_return_url" value="<%= (String) request.getAttribute("url") %>" />

User Application

To lock down UserApp so requests can be made only by Access Manager,

  1. Stop UserApp.
  2. Edit the [path to jboss]/server/IDM/deploy/jbossweb-tomcat55.saw/context.xml file with the following modifications:
    • Add privileged="true" to the Context element.
    • Add a new parameter to the Context element as follows:
      <Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="," deny="" />
  3. Start UserApp and test that the /IDM path can only be requested by Access Manager.

You will have to do the following steps only if you use Username/Password as the Access Manager authentication method and want to use User Application to handle forgotten passwords.

  1. Log in to User Application with Administration rights.
  2. Verify the Forgot Password settings.


User Store

On the user store, you must check the configuration the NMAS Method "SAML Assertion". This method should be automatically installed by NAM once you configure the user store in NAM. Additionally, NAM should have installed the required signing certificates.

  1. On the user store, go to NMAS > NMAS Login Methods > SAML Assertion and choose the Affiliates tab. The page should look like this:


  2. Check the configured affiliate, and your page should look like this:


If the Trusted Certificate field is empty, you can just choose the Public Key certificate that's in the Trusted Root Container named in the Trusted Root Container field. NAM should have created this certificate automatically.

If the Signing Certificate is not present on the user store, you will have to export it from the NAM config store and import it into the user store.

Make sure your time is synchronized between IDP, AG and the user store server you access. By default, the SAML Assertion has a validation window of 3 minutes. If the time is not synchronized, the login will fail.

Labels (2)
Tags (1)


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
9 of 9
Last update:
‎2020-01-31 11:40
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.