Copyright © 2011-2013 ForgeRock, Inc.
Publication date: May 24, 2013
Guide to configuring and using OpenAM features. OpenAM provides open source Authentication, Authorization, Entitlement and Federation software.
This guide shows you how to configure, maintain, and troubleshoot OpenAM for single sign on and authorization, password reset, account lockout, cross-domain single sign on, and federation.
This guide is written for access management designers and administrators who build, deploy, and maintain OpenAM services for their organizations. This guide covers the tasks you might repeat throughout the life cycle of an OpenAM release used in your organization.
This guide starts by introducing the OpenAM administrative interfaces and tools, and by showing how to manage OpenAM services. This guide continues by showing how to configure the principle features of OpenAM. It then demonstrates how to backup, restore, monitor, tune, and troubleshoot, OpenAM services.
You do not need to be an OpenAM wizard to learn something from this guide, though a background in access management and maintaining web application software can help. You do need some background in managing services on your operating systems and in your application servers. You can nevertheless get started with this guide, and then learn more as you go along.
Some items are formatted differently from other text, like
filenames, commands, and
literal values.
$ echo Command line sessions are formatted with lines folded for easier reading. In HTML documents click the [-] image for a flat, copy-paste version. Click the [+] image for an expanded, line-wrapped version. > /dev/null
In many cases, sections pertaining to UNIX, GNU/Linux, Mac OS X, BSD,
and so forth are marked (UNIX). Sections pertaining to Microsoft Windows
might be marked (Windows). To avoid repetition, however, file system
directory names are often given only in UNIX format as in
/path/to/OpenAM, even if the text applies to
C:\path\to\OpenAM as well.
Absolute path names usually begin with the placeholder
/path/to/, which might translate to
/opt/, C:\Program Files\, or
somewhere else on your system. Unless you install from native packages,
you create this location before you install.
class Test {
public static void main(String [] args) {
System.out.println("This is a program listing.");
}
}Core documentation, such as what you are now reading, aims to be technically accurate and complete with respect to the software documented. Core documentation therefore follows a three-phase review process designed to eliminate errors. The review process should slow authors down enough that documentation you get with a stable release has had time to bake fully.
Fully baked core documentation is available at docs.forgerock.org.
The OpenAM Wiki regularly brings you more, fresh content. In addition, you are welcome to sign up and then edit the Wiki if you notice an error, or if you have something to share.
After you sign up at ForgeRock, you can also login to the Wiki and the issue database to follow what is happening with the project.
If you have questions regarding OpenAM which are not answered by the documentation, there is a mailing list which can be found at https://lists.forgerock.org/mailman/listinfo/openam where you are likely to find an answer. You can also make suggestions regarding updates at the documentation mailing list (https://lists.forgerock.org/mailman/listinfo/docs).
The Wiki has information on how to check out OpenAM source code. There is also a mailing list for OpenAM development that can be found at https://lists.forgerock.org/mailman/listinfo/openam-dev. Should you want to contribute a patch, test, or feature, or want to author part of the core documentation, first have a look on the ForgeRock site at how to get involved.
This chapter provides a brief introduction to the web-based OpenAM console. It also lists and describes each command line interface (CLI) administration tool.
After you install OpenAM, login to the web-based console as OpenAM
Administrator, amadmin with the password you set during
installation. The URL to visit in your browser is something like
http://openam.example.com:8080/openam/console, depending
on the protocol (HTTP or HTTPS), host name (in this case
openam.example.com), port number on which the web
containers listens (in this case 8080), and deployment URI (in this case
/openam).
The OpenAM Administrator has access rights to perform all
administrative operations. Therefore, when you login as
amadmin, you see the complete OpenAM console. In the
background, OpenAM has set a cookie in your browser that lasts until the
session expires, you logout, or you close your browser.[1]
When you login to the OpenAM console as an end user, a user without any access to perform administrative operations, then instead of the OpenAM console, you see a page to view and update your account information.
If you configure OpenAM to grant administrative capabilities to another user, then that user also sees the console after login. For instance, the OpenAM Administrator granted Kirsten Vaughan privileges to administer the OpenAM Top Level Realm. (This can be done through the console under Access Control > / (Top Level Realm) > Privileges. Kirsten has authorization to read and write policy properties and configured policy agent properties.) When Kirsten logs in, she sees only part of the console capabilities.[2]
The script tools in the following list have .bat
versions for use on Microsoft Windows.
You can install the following OpenAM command-line tools.
This tool lets you manage OpenAM policy agent installations.
Unpack this tool as part of policy agent installation.
This tool lets you change OpenAM Administrator passwords, and display encrypted password values.
Install this from the openam-distribution-ssoadmintools-10.2.0-SNAPSHOT.zip.
This tool checks log archives for tampering.
Install this from openam-distribution-ssoadmintools-10.2.0-SNAPSHOT.zip.
This executable .jar file lets you perform silent installation,
configuring a deployed OpenAM server by applying settings from a
configuration file, using the java -jar configurator.jar -f
config.file. The .jar
is provided with a sample configuration file.
The config.file, based on the sampleconfiguration
file provided with the tool, must be adapted for your environment.
Install this from openam-distribution-ssoconfiguratortools-10.2.0-SNAPSHOT.zip.
This tool provides a rich command-line interface for configuration of OpenAM core services.
In a test environment you can activate
ssoadm.jsp to access the same functionality in your
browser. To access many features of the ssoadm
command through the OpenAM console, visit the
ssoadm.jsp page in your browser after activating it
when you installed OpenAM, for example
http://openam.example.com:8080/openam/ssoadm.jsp.
Install this from openam-distribution-ssoadmintools-10.2.0-SNAPSHOT.zip.
To translate settings applied in OpenAM console to service attributes
for use with ssoadm, login to the OpenAM console
as amadmin and access the services page, such as
http://openam.example.com:8080/openam/services.jsp.
This extensible diagnostic tool runs in GUI mode by default, but can also be run in command-line mode. The tool helps you check configuration settings and verify configuration integrity, test connectivity, and generate test reports.
Install this from openam-distribution-diagnostics-10.2.0-SNAPSHOT.zip.
The commands access the OpenAM configuration over HTTP (or HTTPS). When using the administration commands in a site configuration, the commands access the configuration through the front end load balancer.
Sometimes a command cannot access the load balancer, because:
Network routing restrictions prevent the tool from accessing the load balancer.
For testing purposes, the load balancer uses a self-signed certificate for HTTPS, and the tool does not have a way of trusting the self-signed certificate.
The load balancer is temporarily unavailable.
In such cases you can work around the problem by adding an option such as the following to the java command in the tool's script. The option sets a comma-separated list of key-value pairs, where the key is the load balancer URL and the value is the server URL. (This all belongs on one line with no spaces in the script.)
-D"com.iplanet.am.naming.map.site.to.server=https://lb.example.com:443/openam= http://server1.example.com:8080/openam,https://lb.example.com:443/openam= http://server2.example.com:8080/openam"
In the above example the load balancer is on the lb
host, https://lb.example.com:443/openam is the site name,
and the OpenAM servers in the site are on server1 and
server2.
You can use the ssoadm.jsp page to access a large subset of the configuration capabilities of the ssoadm command. Yet, ssoadm.jsp is disabled by default to prevent potential misuse.
Login as OpenAM administrator, amadmin.
Click Configuration > Servers and Sites tabs, then in the Servers list, click the link to configure your server.
Click the Advanced tab to display the Advanced Properties table, and then click Add to include the property that enables ssoadm.jsp before saving your change.
ssoadm.disabled
false
Browse to ssoadm.jsp to check that it is enabled.
The URL is something like
http://openam.example.com:8080/openam/ssoadm.jsp,
depending on your installation.
An authentication service confirms the identity of a user or a client application.
This chapter describes how to configure authentication in OpenAM.
Access management is about controlling access to resources. OpenAM plays a role similar to border control at an international airport. Instead of having each and every airline company deal with access to each destination, all airlines redirects passengers to border control. Border control then determines who each passenger is according to passport credentials. Border control also checks whether the identified passenger is authorized to fly to the destination corresponding to the ticket, perhaps based on visa credentials. Then, at the departure gate, an agent enforces the authorization from border control, allowing the passenger to board the plane as long as the passenger has not gotten lost, or tried to board the wrong plane, or swapped tickets with someone else. Thus, border control handles access management at the airport.
OpenAM is most frequently used to protect web-accessible resources. Users browse to a protected web application page. Rather than have the web application manage user access itself, an agent in the server where the web application runs redirects the user to OpenAM for access management. OpenAM determines who the user is, and whether the user has the right to access the protected page. OpenAM then redirects the user back to the protected page, this time with authorization that the agent can check. The agent enforces the authorization from OpenAM, letting through the user with the right to access the page. Thus, OpenAM handles access management to web resources.
Notice that OpenAM basically needs to determine two things for access management: who the user is; whether the user has access to the protected page. Authentication is the term meaning the determination of who a user is. This chapter covers how to set up the authentication process. Authorization is the term meaning determination whether a user has access to a protected resource. Authorization is covered later.
To process authentication, OpenAM obtains credentials from the user or client application authenticating, based on the mechanisms defined to validate credentials and complete the authentication. In other words, how a user authenticates differs depending on the situation. Passengers for international flights authenticate with passports and visas. Passengers for domestic flights might authenticate with an identity card or a driver's license. Customers withdrawing cash from an ATM authenticate with a card and a PIN.
As the authentication process depends on the situation, OpenAM allows you to configure authentication processes and then configure how they are applied depending on the situation. OpenAM uses authentication modules to handle different ways of authenticating. Basically, each authentication module handles one way of obtaining and verifying credentials. When a single set of credentials is not enough, or alternate sets of credentials can be used, you can choose to chain modules together. In OpenAM, this is called authentication chaining. When you chain authentication modules, you can configure each module as required, optional, requisite, or sufficient.[3]
When a required module fails, the rest of the chain is processed, but the authentication fails.
A required module might be used for login with email and password, but then fall through to another module to handle new users who have not yet signed up.
When an optional module fails, authentication continues.
An optional module might be used to permit a higher level of access if the user can present a X.509 certificate for example.
When a requisite module fails, authentication fails and authentication processing stops.
A requisite module might be used with exclusive SSO.
When a sufficient succeeds, authentication is successful and later modules in the chain are skipped.
You could set Windows Desktop SSO as sufficient, so authenticated Windows users are let through, whereas web users have to traverse another authentication module such as one requiring an email address and a password.
With OpenAM, you can further set authentication levels per module, with higher levels being used typically to allow access to more restricted resources. The OpenAM SPIs also let you develop your own authentication modules, and post-authentication plugins. Client applications can specify the authentication level, module, user, and authentication service to use among those you have configured. As described later in this guide, you can use realms to organize which authentication process applies for different applications or different domains, perhaps managed by different people.
When a user successfully authenticates, OpenAM creates a session, which allows OpenAM to manage that user's access to resources. In some deployments you need to limit how many active sessions a user can have at a given time. For example, you might want to prevent a user from using more than two devices at once. See Section 2.7, “Configuring Session Quotas” for instructions.
OpenAM leaves the authentication process flexible so that you can adapt how it works to your situation. Although at first the number of choices can seem daunting, now that you understand the basic process, you begin to see how choosing authentication modules and arranging them in authentication chains lets you use OpenAM to protect access to a wide range of applications used in your organization.
The OpenAM console provides two places where the OpenAM administrator can configure authentication modules.
Under Configuration > Authentication, you configure available modules for use throughout OpenAM. What you set up here is inherited for use elsewhere.
Under Access Control > Realm Name >
Authentication, you configure modules for your realm. What you set up
at this level inherits from the global configuration, but you can override
what is inherited. You can also add your own modules if necessary.
Individual module configuration depends completely on what the module does. Configuring the module that connects to Active Directory over LDAP to authenticate a user using user name and password requires connection information and details about where to search for users, whereas configuring the HOTP module for OTP authentication requires information about the password length and the mail server or SMS gateway for sending the password during authentication.
One parameter that all modules have is Authentication Level. You change Authentication Level from 0 to a positive integer in order to indicate those modules are seen as more secure. Then you configure authorization to require a minimum authentication level required to access protected resources.
OpenAM connects to Active Directory over Lightweight Directory Access Protocol (LDAP). OpenAM provides separate Active Directory and LDAP modules to make it easier for you to use both Active Directory and also another directory service in an authentication chain.
ssoadm service name:
sunAMAuthADService
The default port for LDAP is 389. If you are connecting to Active Directory over SSL, the default port for LDAP/SSL is 636.
To allow users to change passwords through OpenAM, Active Directory requires that you connect over SSL.
If you want to use SSL or TLS for security, then scroll down to enable SSL/TLS Access to Active Directory Server. Make sure that OpenAM can trust the Active Directory certificate when using this option.
OpenAM first attempts to contact primary servers. If no primary server is available, then OpenAM attempts to contact secondaries.
When authenticating users from a directory server that is remote from OpenAM, set both the primary and secondary server values.
ssoadm attributes: primary is
iplanet-am-auth-ldap-server; secondary is
iplanet-am-auth-ldap-server2
LDAP data is organized hierarchically, a bit like a file system
on Windows or UNIX. More specific DNs likely result in better performance.
When configuring the module for a particular part of the organization,
you can perhaps start searches from a specific organizational unit such as
OU=sales,DC=example,DC=com.
If multiple entries exist with identical search attribute values, make this value specific enough to return only one entry.
ssoadm attribute:
iplanet-am-auth-ldap-base-dn
If OpenAM stores attributes in Active Directory, for example to manage account lockout, or if Active Directory requires that OpenAM authenticate in order to read users' attributes, then OpenAM needs the DN and password to authenticate to Active Directory.
The default is amldapuser. If the administrator
authentication chain (default: ldapService) has been
configured to include only the Active Directory module, then make sure
that the password is correct before you logout. If it is incorrect, you
will be locked out. If you do get locked out, you can login with the
super user DN, which by default is
uid=amAdmin,ou=People,,
where OpenAM-deploy-baseOpenAM-deploy-base was set during
OpenAM configuration.
ssoadm attributes:
iplanet-am-auth-ldap-bind-dn and
iplanet-am-auth-ldap-bind-passwd
LDAP searches for user entries return entries with attribute
values matching the filter you provide. For example if you search under
CN=Users,DC=example,DC=com with a filter
"(MAIL=bjensen@example.com)", then the directory
returns the entry that has MAIL=bjensen@example.com.
In this example the attribute used to search for a user is
mail. Multiple attribute values mean the user can
authenticate with any one of the values. For example, if you have
both uid and mail, then Barbara
Jensen can authenticate with either bjensen or
bjensen@example.com.
Should you require a more complex filter for performance, you
add that to the User Search Filter text box. For example, if you search
on mail and add User Search Filter
(objectClass=inetOrgPerson), then OpenAM uses the
resulting search filter
(&(mail=,
where address)(objectClass=inetOrgPerson))address is the mail address provided
by the user.
Scope OBJECT means search only the entry specified as the DN to Start User Search, whereas ONELEVEL means search only the entries that are directly children of that object. SUBTREE means search the entry specified and every entry under it.
ssoadm attributes:
iplanet-am-auth-ldap-user-naming-attribute,
iplanet-am-auth-ldap-user-search-attributes,
iplanet-am-auth-ldap-search-filter, and
iplanet-am-auth-ldap-search-scope
If you enable SSL, OpenAM must be able to trust Active Directory certificates, either because the Active Directory certificates were signed by a CA whose certificate is already included in the trust store used by the container where OpenAM runs, or because you imported the certificates into the trust store.
ssoadm attribute:
iplanet-am-auth-ldap-ssl-enabled
When enabled, and OpenAM uses Active Directory as the user store, the module returns the DN rather than the User ID, so the bind for authentication can be completed without a search to retrieve the DN.
ssoadm attribute:
iplanet-am-auth-ldap-return-user-dn
Used by the failover mechanism. Specifies the number of minutes between checks whether a previously unavailable Active Directory has become available again.
ssoadm attribute:
iplanet-am-auth-ldap-server-check
This list lets you map (external) attribute names from Active Directory to (internal) attribute names used by OpenAM.
ssoadm attribute:
iplanet-am-ldap-user-creation-attr-list
ssoadm attribute:
sunAMAuthADAuthLevel
The Adaptive Risk module is designed to assess risk during authentication so that OpenAM can determine whether to require the user to complete further authentication steps. After configuring the Adaptive Risk module, insert it in your authentication chain with criteria set to sufficient as shown in the following example.
In the example authentication chain shown, OpenAM has users authenticate first using the LDAP module providing a user ID and password combination. Upon success, OpenAM calls the Adaptive Risk module. The Adaptive Risk module assesses the risk based on your configured parameters. If the Adaptive Risk module calculates a total score below the threshold you set, the module returns success, and OpenAM finishes authentication processing without requiring further credentials. Otherwise the Adaptive Risk module evaluates the score to be above the risk threshold, and returns failure. OpenAM then calls the HOTP module, requiring the user to authenticate with a one-time password delivered to her by email or by SMS to her mobile phone.
When you configure the Adaptive Risk module to save cookies and
profile attributes after successful authentication, OpenAM performs the
save as post-authentication processing, only after the entire authentication
chain returns success. You must set up OpenAM to save the data as part of
post-authentication processing by editing the authentication chain to add
org.forgerock.openam.authentication.modules.adaptive.Adaptive
to the list of post authentication plugins.
ssoadm service name:
sunAMAuthAdaptiveService
ssoadm attribute:
openam-auth-adaptive-auth-level
Risk threshold score. If the sum of the Scores is greater than the threshold, the Adaptive Risk module returns failure. Default: 1
ssoadm attribute:
openam-auth-adaptive-auth-threshold
When enabled, check the user profile for authentication failures since the last successful login. This check therefore requires OpenAM to have access to the user profile, and Account Lockout to be enabled (otherwise OpenAM does not record authentication failures).
ssoadm attribute:
openam-auth-adaptive-failure-check
Value to add to the total score if the user fails the Failed Authentication Check. Default: 1
ssoadm attribute:
openam-auth-adaptive-failure-score
When selected, add the Score to the total score if the user passes the Failed Authentication Check.
ssoadm attribute:
openam-auth-adaptive-failure-invert
When enabled, check whether the client IP address is within one of the specified IP Ranges.
ssoadm attribute:
openam-auth-adaptive-ip-range-check
Specifies a list of IP ranges either in CIDR-style notation
()
or as a range from one address to another
(x.x.x.x/YY,
meaning from x.x.x.x:y.y.y.yx.x.x.x to
y.y.y.y). Currently supports only IPv4.
ssoadm attribute:
openam-auth-adaptive-ip-range-range
Value to add to the total score if the user fails the IP Range Check. Default: 1
ssoadm attribute:
openam-auth-adaptive-ip-range-score
When selected, add the Score to the total score if the user passes the IP Range Check.
ssoadm attribute:
openam-auth-adaptive-ip-range-invert
When enabled, check whether the client IP address matches one of the known values stored on the profile attribute you specify. This check therefore requires that OpenAM have access to the user profile.
ssoadm attribute:
openam-auth-adaptive-ip-history-check
Specifies how many IP address values to retain on the profile attribute you specify. Default: 5
ssoadm attribute:
openam-auth-ip-adaptive-history-count
Name of the user profile attribute on which to store known IP
addresses. Default: iphistory
ssoadm attribute:
openam-auth-adaptive-ip-history-attribute
When enabled, save new client IP addresses to the known IP address list following successful authentication.
ssoadm attribute:
openam-auth-adaptive-ip-history-save
Value to add to the total score if the user fails the IP History Check. Default: 1
ssoadm attribute:
openam-auth-adaptive-ip-history-score
When selected, add the Score to the total score if the user passes the IP History Check.
ssoadm attribute:
openam-auth-adaptive-ip-history-invert
When enabled, check whether the client browser request has the specified cookie and optional cookie value.
ssoadm attribute:
openam-auth-adaptive-known-cookie-check
Specifies the name of the cookie for which OpenAM checks when you enable the Cookie Value Check.
ssoadm attribute:
openam-auth-adaptive-known-cookie-name
Specifies the value of the cookie for which OpenAM checks. If no value is specified, OpenAM does not check the cookie value.
ssoadm attribute:
openam-auth-adaptive-known-cookie-value
When enabled, save the cookie as specified in the client's browser following successful authentication. If no Cookie Value is specified, the value is set to 1.
ssoadm attribute:
openam-auth-adaptive-known-cookie-save
Value to add to the total score if user passes the Cookie Value Check. Default: 1
ssoadm attribute:
openam-auth-adaptive-known-cookie-score
When selected, add the Score to the total score if the user passes the Cookie Value Check.
ssoadm attribute:
openam-auth-adaptive-known-cookie-invert
When enabled, check whether the client browser request has the specified cookie with the correct device registration identifier as the value.
ssoadm attribute:
openam-auth-adaptive-device-cookie-check
Specifies the name of the cookie for the Device Registration Cookie Check. Default: Device
ssoadm attribute:
openam-auth-adaptive-device-cookie-name
When enabled, save the specified cookie with a hashed device identifier value in the client's browser following successful authentication.
ssoadm attribute:
openam-auth-adaptive-device-cookie-save
Value to add to the total score if the user fails the Device Registration Cookie Check. Default: 1
ssoadm attribute:
openam-auth-adaptive-device-cookie-score
When selected, add the Score to the total score if the user passes the Device Registration Cookie Check.
ssoadm attribute:
openam-auth-adaptive-device-cookie-invert
When enabled, check whether the client browser request has the specified cookie that holds the encrypted last login time, and check that the last login time is more recent than a maximum number of days you specify.
ssoadm attribute:
openam-auth-adaptive-time-since-last-login-check
Specifies the name of the cookie holding the encrypted last login time value.
ssoadm attribute:
openam-auth-adaptive-time-since-last-login-cookie-name
Specifies a threshold age of the last login time in days. If the client's last login time is more recent than the number of days specified, then the client successfully passes the check.
ssoadm attribute:
openam-auth-adaptive-time-since-last-login-value
When enabled, save the specified cookie with the current time encrypted as the last login value in the client's browser following successful authentication.
ssoadm attribute:
openam-auth-adaptive-time-since-last-login-save
Value to add to the total score if the user fails the Time Since Last Login Check. Default: 1
ssoadm attribute:
openam-auth-adaptive-time-since-last-login-score
When selected, add the Score to the total score if the user passes the Time Since Last Login Check.
ssoadm attribute:
openam-auth-adaptive-time-since-last-login-invert
When enabled, check whether the user profile contains the specified attribute and value.
ssoadm attribute:
openam-auth-adaptive-risk-attribute-check
Specifies the attribute to check on the user profile for the specified value.
ssoadm attribute:
openam-auth-adaptive-risk-attribute-name
Specifies the value to match on the profile attribute. If the attribute is multi-valued, a single match is sufficient to pass the check.
ssoadm attribute:
openam-auth-adaptive-risk-attribute-value
Value to add to the total score if the user fails the Profile Risk Attribute Check. Default: 1
ssoadm attribute:
openam-auth-adaptive-risk-attribute-score
When selected, add the Score to the total score if the user passes the Profile Risk Attribute Check.
ssoadm attribute:
openam-auth-adaptive-risk-attribute-invert
When enabled, check whether the client IP address location matches a country specified in the Valid Country Codes list. The
ssoadm attribute:
forgerock-am-auth-adaptive-geo-location-check
Path to GeoIP data file used to convert IP addresses to country locations. The geolocation database is not packaged with OpenAM. You can downloaded the GeoIP Country database from MaxMind. Use the binary .dat file format, rather than .csv. You can use the GeoLite Country database for testing.
ssoadm attribute:
openam-auth-adaptive-geo-location-database
Specifies the list of country codes to match. Use
| to separate multiple values.
ssoadm attribute:
openam-auth-adaptive-geo-location-values.
Value to add to the total score if the user fails the Geolocation Country Code Check. Default: 1
ssoadm attribute:
openam-auth-adaptive-geo-location-score
When selected, add the Score to the total score if the user passes the Geolocation Country Code Check.
ssoadm attribute:
openam-auth-adaptive-geo-location-invert
When enabled, check whether the client browser request has the specified header with the correct value.
ssoadm attribute:
openam-auth-adaptive-req-header-check
Specifies the name of the request header for the Request Header Check.
ssoadm attribute:
openam-auth-adaptive-req-header-name
Specifies the value of the request header for the Request Header Check.
ssoadm attribute:
openam-auth-adaptive-req-header-value
Value to add to the total score if the user fails the Request Header Check. Default: 1
ssoadm attribute:
openam-auth-adaptive-req-header-score
When selected, add the Score to the total score if the user passes the Request Header Check.
ssoadm attribute:
openam-auth-adaptive-req-header-invert
This module lets you track and manage anonymous users, perhaps forcing further authentication later when a user moves to access resources that require more protection.
ssoadm service name:
iPlanetAMAuthAnonymousService
Specifies valid anonymous user IDs in addition to the default.
ssoadm attribute:
iplanet-am-auth-anonymous-users-list
Specifies the user ID assigned by the module if the Valid
Anonymous Users list is empty. Default: anonymous
ssoadm attribute:
iplanet-am-auth-anonymous-default-user-name
Whether case matters for anonymous user IDs.
ssoadm attribute:
iplanet-am-auth-anonymous-case-sensitive
ssoadm attribute:
iplanet-am-auth-anonymous-auth-level
X.509 digital certificates can enable secure authentication without the need for user names and passwords or other credentials. Certificate authentication can be handy to manage authentication by applications. If all certificates are signed by a recognized Certficate Authority (CA), then you might get away without additional configuration. If you need to look up public keys of OpenAM clients, this module can also look up public keys in an LDAP directory server.
When you store certificates and certificate revocation lists (CRL) in an LDAP directory service, you must configure both how to access the directory service and also how to look up the certificates and CRLs, based on the fields in the certificates that OpenAM clients present to authenticate.
Access to the LDAP server and how to search for users is similar
to LDAP module configuration as in Section 2.2.11, “Hints For the LDAP Authentication Module”.
The primary difference is that, unlike for LDAP configuration, OpenAM
retrieves the user identifier from a field in the certificate that the
client application presents, then uses that identifier to search for the
LDAP directory entry that holds the certificate, which should match the
certificate presented. For example, if the Subject field of a typical
certificate has a DN C=FR, O=Example Corp, CN=Barbara
Jensen, and Barbara Jensen's entry in the directory has
cn=Barbara Jensen, then you can use CN=Barbara
Jensen from the Subject DN to search for the entry with
cn=Barbara Jensen in the directory.
ssoadm service name:
iPlanetAMAuthCertService
When enabled, OpenAM searches for a match for the user's certificate in the LDAP directory. If a match is found and not revoked according to a CRL or OCSP validation, then authentication succeeds.
ssoadm attribute:
iplanet-am-auth-cert-check-cert-in-ldap
Indicates which attribute and value in the certificate Subject DN is used to find the LDAP entry holding the certificate.
ssoadm attribute:
iplanet-am-auth-cert-attr-check-ldap
When enabled, OpenAM checks whether the certificate has been revoked according to a CRL in the LDAP directory.
ssoadm attribute:
iplanet-am-auth-cert-check-crl
Indicates which attribute and value in the certificate Issuer DN is used to find the CRL in the LDAP directory.
ssoadm attribute:
iplanet-am-auth-cert-attr-check-crl
Your certificate authority should provide the URL to use here, from which OpenAM can get CRL updates.
ssoadm attribute:
iplanet-am-auth-cert-param-get-crl
When enabled, OpenAM checks the CRL against the CA certificate to ensure it has not been compromised.
ssoadm attribute:
sunAMValidateCACert
Enable this to use Online Certificate Status Protocol (OCSP) instead of CRLs to check certificates' revocation status.
If you enable this, you also must configure OSCP for OpenAM
under Configuration > Server and Sites > Default Server Settings,
or Configuration > Server and Sites > Server
Name > Security.
ssoadm attribute:
iplanet-am-auth-cert-check-ocsp
The default port for LDAP is 389. If you are connecting to the directory service over SSL, the default port for LDAP/SSL is 636. When a secure connection, scroll down to enable Use SSL/TLS for LDAP Access.
ssoadm attribute:
iplanet-am-auth-cert-ldap-provider-url
Valid base DN for the LDAP search, such as
dc=example,dc=com.
ssoadm attribute:
iplanet-am-auth-cert-start-search-loc
If OpenAM stores attributes in the LDAP directory, for example to manage account lockout, or if the LDAP directory requires that OpenAM authenticate in order to read users' attributes, then OpenAM needs the DN and password to authenticate to the LDAP directory.
ssoadm attributes:
iplanet-am-auth-cert-principal-user, and
iplanet-am-auth-cert-principal-passwd
If you use SSL for LDAP access, OpenAM must be able to trust the LDAP server certificate.
ssoadm attribute:
iplanet-am-auth-cert-use-ssl
If the user profile is in a different entry from the user certificate, then this can be different from subject DN attribute used to find the entry with the certificate. When you select other, provide an attribute name in the Other Certificate Field Used to Access User Profile text box.
ssoadm attribute:
iplanet-am-auth-cert-user-profile-mapper
Use this if you want to look up the user profile from an RFC 822 style name, or a User Principal Name as used in Active Directory.
ssoadm attribute:
iplanet-am-auth-cert-user-profile-mapper-ext
Hosts trusted to send certificates to OpenAM, such as load balancers doing SSL termination, or OpenAM distributed authentication UI instances.
ssoadm attribute:
iplanet-am-auth-cert-gw-cert-auth-enabled
If you configure trusted hosts, specify the HTTP header name for the client certificate inserted by the trusted host.
ssoadm attribute:
sunAMHttpParamName
ssoadm attribute:
iplanet-am-auth-cert-auth-level
The Core module is a sort of meta-module.
The Core module lets you set up the list of modules available, and specify what types of client applications can authenticate with which modules. It also lets you configure connection pools for access to directory servers, and whether to retain objects used during authentication for use during logout. Furthermore, the Core module lets you set defaults used when configuring authentication in a particular realm.
ssoadm service name:
iPlanetAMAuthService
Add class names for custom authentication modules to this list.
ssoadm attribute:
iplanet-am-auth-authenticators
This list serves to limit what types of authentication modules
can be used with specify types of client applications. The client type
is an arbitary string, such as the default genericHTML,
which is set by OpenAM when the Client Detection Service is enabled.
ssoadm attribute:
iplanet-am-auth-supported-auth-modules
Sets a minimum and maximum number of LDAP connections in the pool
for connecting to a directory server. When tuning for production, start
with 10:65 (10 minimum, 65 maximum). Explicit settings
for specific servers override the default.
This attribute is for LDAP and Membership authentication services only.
This connection pool is different than the SDK connection pool
configured in serverconfig.xml.
ssoadm attributes:
iplanet-am-auth-ldap-connection-pool-size, and
iplanet-am-auth-ldap-connection-pool-default-size
Require the authenticating application to send its SSOToken. This allows the Authentication Service to obtain the username and password associated with the application.
ssoadm attribute:
sunRemoteAuthSecurityEnabled
When enabled, retain objects used to process authentication or post authentication operations in the user session until the user logs out.
ssoadm attributes:
sunAMAuthKeepPostProcessInstances, and
sunAMAuthKeepAuthModuleIntances
Whether a user profile needs to exist in the user data store, or should be created on successful authentication.
Specifies that on successful authentication the Authentication Service creates a user profile if one does not already exist. OpenAM then issues the SSOToken. OpenAM creates the user profile in the user data store configured for the realm.
Specifies that on successful authentication the Authentication Service creates a user profile that contains the User Alias List attribute which defines one or more aliases that for mapping a user's multiple profiles.
Specifies that a user profile is not required for the Authentication Service to issue an SSOToken after a successful authentication.
Specifies that on successful authentication the user must have a user profile in the user data store configured for the realm in order for the Authentication Service to issue an SSOToken.
ssoadm attribute:
iplanet-am-auth-dynamic-profile-creation
Defines the authentication chain used by administrators when the process needs to be different from the authentication chain defined for end users. The authentication chain must first be created before it is displayed as an option in this attribute's drop down list.
ssoadm attribute:
iplanet-am-auth-admin-auth-module
Specifies the Distinguished Name (DN) of a role to be assigned to a new user whose profile is created when either of the Dynamic options is selected under the User Profile attribute. There are no default values. The role specified must be within the realm for which the authentication process is configured.
This role can be either an OpenAM or Sun DSEE role, but it cannot be a filtered role. If you wish to automatically assign specific services to the user, you have to configure the Required Services attribute in the User Profile.
ssoadm attribute:
iplanet-am-auth-default-role
Determines whether users can return to their authenticated session after restarting the browser. When enabled, the persistent cookie can be used to reauthenticate until the persistent cookie expires (as specified by the value of the Persistent Cookie Maximum Time attribute), or until the user explicitly logs out. By default, the Authentication Service uses only memory cookies (expires when the browser is closed).
The client must explicitly request a persistent cookie by adding
iPSPCookie=yes as a parameter to the login URL. OpenAM
sets a DProPCookie as described in
Section 2.5, “Authenticating To OpenAM”.
ssoadm attribute:
iplanet-am-auth-persistent-cookie-mode
Specifies the interval after which a persistent cookie expires. The interval begins when the user's session is successfully authenticated. The maximum value is 2147483647 (in seconds, so a bit more than 68 years). The field accepts any integer value less than the maximum.
ssoadm attribute:
iplanet-am-auth-persistent-cookie-time
After a user is successfully authenticated, the user's profile is retrieved. This field specifies a second LDAP attribute to use in a search for the profile if a search using the first LDAP attribute fails to locate a matching user profile. Primarily, this attribute is used when the user identification returned from an authentication module is not the same as that specified in User Naming Attribute. For example, a RADIUS server might return abc1234 but the user name is abc. There is no default value for this attribute. The field takes any valid LDAP attribute.
ssoadm attribute:
iplanet-am-auth-alias-attr-name
Specifies the default language subtype to be used by the
Authentication Service. The default value is
en_US.
ssoadm attribute:
iplanet-am-auth-locale
Defines the default authentication chain used by the realm's users. The authentication chain must first be created before it is displayed as an option in this attribute's drop down list.
ssoadm attribute:
iplanet-am-auth-org-config
Selecting this attribute enables a physical lockout. Physical lockout will inactivate an LDAP attribute (defined in the Lockout Attribute Name property) in the user's profile. This attribute works in conjunction with several other lockout and notification attributes.
ssoadm attribute:
iplanet-am-auth-login-failure-lockout-mode
Defines the number of attempts that a user has to authenticate, within the time interval defined in Login Failure Lockout Interval, before being locked out.
ssoadm attribute:
iplanet-am-auth-login-failure-count
Defines the time in minutes during which failed login attempts are counted. If one failed login attempt is followed by a second failed attempt, within this defined lockout interval time, the lockout count starts, and the user is locked out if the number of attempts reaches the number defined in Login Failure Lockout Count. If an attempt within the defined lockout interval time proves successful before the number of attempts reaches the number defined in Login Failure Lockout Count, the lockout count is reset.
ssoadm attribute:
iplanet-am-auth-login-failure-duration
Specify one (or more) email address(es) to which notification is sent if a user lockout occurs.
Separate multiple addresses with spaces, and append
|
to addresses for recipients in non-English locales.locale|charset
ssoadm attribute:
iplanet-am-auth-lockout-email-address
The number of authentication failures after which OpenAM displays a warning message that the user will be locked out.
ssoadm attribute:
iplanet-am-auth-lockout-warn-user
Defines how many minutes a user must wait after a lockout before attempting to authenticate again. Entering a value greater than 0 enables memory lockout and disables physical lockout. Memory lockout means the user's account is locked in memory for the number of minutes specified. The account is unlocked after the time period has passed.
ssoadm attribute:
iplanet-am-auth-lockout-duration
Defines a value with which to multiply the value of the Login Failure Lockout Duration attribute for each successive lockout. For example, if Login Failure Lockout Duration is set to 3 minutes, and the Lockout Duration Multiplier is set to 2, the user is locked out of the account for 6 minutes. Once the 6 minutes has elapsed, if the user again provides the wrong credentials, the lockout duration is then 12 minutes. With the Lockout Duration Multiplier, the lockout duration is incrementally increased based on the number of times the user has been locked out.
ssoadm attribute:
sunLockoutDurationMultiplier
Defines the LDAP attribute used for physical lockout. The default
value is inetuserstatus, although the field in the
OpenAM console is empty. The Lockout Attribute Value field must also
contain an appropriate value.
ssoadm attribute:
iplanet-am-auth-lockout-attribute-name
Specifies the action to take on the attribute defined in Lockout
Attribute Name. The default value is inactive,
although the field in the OpenAM console is empty. The Lockout Attribute
Name field must also contain an appropriate value.
ssoadm attribute:
iplanet-am-auth-lockout-attribute-value
Specifies the LDAP attribute used to hold the number of failed authentication attempts towards Login Failure Lockout Count.
ssoadm attribute:
sunAMAuthInvalidAttemptsDataAttrName
Accepts a list of values that specifies where users are directed
after successful authentication. The format of this attribute is
although the only value you can specify at this time is a URL
which assumes the type HTML. The default value is
client-type|URL/openam/console. Values that do not specify HTTP have
that appended to the deployment URI.
ssoadm attribute:
iplanet-am-auth-login-success-url
Accepts a list of values that specifies where users are directed
after authentication has failed. The format of this attribute is
although the only value you can specify at this time is a URL
which assumes the type HTML. Values that do not specify HTTP have
that appended to the deployment URI.client-type|URL
ssoadm attribute:
iplanet-am-auth-login-failure-url
Specifies one or more Java classes used to customize post
authentication processes for successful or unsuccessful logins.
The Java class must implement the
com.sun.identity.authentication.spi.AMPostAuthProcessInterface
OpenAM interface.
A .jar containing the post processing class belongs in
the WEB-INF/lib directory of the deployed OpenAM
instance. If you do not build a .jar, add the class files under
WEB-INF/classes. For deployment, add the .jar or
classes into a custom OpenAM .war file.
ssoadm attribute:
iplanet-am-auth-post-login-process-class
When enabled, the Membership module generates a list of alternate user identifiers if the one entered by a user during the self-registration process is not valid or already exists. The user identifiers are generated by the class specified in the Pluggable User Name Generator Class property.
ssoadm attribute:
iplanet-am-auth-username-generator-enabled
Specifies the name of the class used to generate alternate user
identifiers when Generate UserID Mode is enabled. The default value is
com.sun.identity.authentication.spi.DefaultUserIDGenerator.
ssoadm attribute:
iplanet-am-auth-username-generator-class
Lists the type or types of identities for which OpenAM searches.
ssoadm attribute:
sunAMIdentityType
Specifies one or more Java classes used to provide a callback
mechanism for user status changes during the authentication process.
The Java class must implement the
com.sun.identity.authentication.spi.AMAuthCallBack
OpenAM interface. OpenAM supports account lockout and password changes.
OpenAM supports password changes through the LDAP authentication module,
and so the feature is only available for the LDAP module.
A .jar containing the user status event class belongs in
the WEB-INF/lib directory of the deployed OpenAM
instance. If you do not build a .jar, add the class files under
WEB-INF/classes. For deployment, add the .jar or
classes into a custom OpenAM .war file.
ssoadm attribute:
sunAMUserStatusCallbackPlugins
Enables the storage of information regarding failed authentication attempts as the value of the Invalid Attempts Data Attribute Name in the user data store. In order to store data in this attribute, the OpenAM schema has to be loaded. Information stored includes number of invalid attempts, time of last failed attempt, lockout time and lockout duration. Storing this information in the identity repository allows it to be shared among multiple instances of OpenAM.
ssoadm attribute:
sunStoreInvalidAttemptsInDS
Enables users to authenticate using module-based authentication.
Otherwise, all attempts at authentication using the
module= login
parameter result in failure.module-name
ssoadm attribute:
sunEnableModuleBasedAuth
Enables the authenticating user's identity attributes (stored in
the identity repository) to be set as session properties in the user's
SSOToken. The value takes the format
.
If User-Profile-Attribute|Session-Attribute-NameSession-Attribute-Name is not specified,
the value of User-Profile-Attribute is used.
All session attributes contain the am.protected prefix
to ensure that they cannot be edited by the Client SDK.
For example, if you define the user profile attribute as mail and
the user's email address (available in the user session) as
user.mail, the entry for this attribute would be
mail|user.mail. After a successful authentication,
the SSOToken.getProperty(String) method is used to
retrieve the user profile attribute set in the session. The user's email
address is retrieved from the user's session using the
SSOToken.getProperty("am.protected.user.mail") method
call.
Properties that are set in the user session using User Attribute
Mapping to Session Attributes can not be modified (for example,
SSOToken.setProperty(String, String)). This results in
an SSOException. Multi-value attributes, such as
memberOf, are listed as a single session variable
with a | separator.
ssoadm attribute:
sunAMUserAttributesSessionMapping
List external domains to which clients can be redirected after authentication.
ssoadm attribute:
iplanet-am-auth-valid-goto-domains
Enables the administrator to allow users to authenticate to a single authentication screen using GET request parameters. Enable this with caution as it can allow credentials to be cached.
ssoadm attribute:
openam.auth.zero.page.login.enabled
The level set here applies when no authentication level has been specified in the Authentication Level field for a realm.
ssoadm attribute:
iplanet-am-auth-default-auth-level
The Data Store authentication module allows a login using the Identity Repository of the realm to authenticate users. Using the Data Store module removes the requirement to write an authentication plug-in module, load, and then configure the authentication module if you need to authenticate against the same data store repository. Additionally, you do not need to write a custom authentication module where flat-file authentication is needed for the corresponding repository in that realm.
Yet, the Data Store module is generic. It does not implement data store-specific capabilities such as the password policy and password reset features provided by LDAP modules. Therefore the Data Store module returns failure when such capabilities are invoked.
ssoadm service name:
sunAMAuthDataStoreService
ssoadm attributes:
amAuthDataStore, and
sunAMAuthDataStoreAuthLevel
The Federation authentication module is used by a service provider to create a user session after validating single sign-on protocol messages. This authentication module is used by the SAML, SAMLv2, ID-FF, and WS-Federation protocols.
ssoadm service name:
sunAMAuthFederationService
ssoadm attribute:
sunAMAuthFederationAuthLevel
The HMAC One-Time Password authentication module works together with the Data Store module to retrieve a user's mail address or telephone number to send a one-time password to complete authentication.
To use HOTP you set up an authentication chain with the Data Store
module as the requisite first module, and the HOTP module
as the second requisite module. When authentication
succeeds against the Data Store module, OpenAM passes the Email Address
and Telephone Number attributes from the user profile to the HOTP module.
For the HOTP module to use either attribute, the Email Address must contain
a valid email address, or the Telephone Number must contain a valid
SMS telephone number.
You can set the HOTP module to automatically generate a password when users begin logging into the system. You can also setup a mobile phone, mobile carrier, and email attributes for tighter controls over where the messages are generated and what provider the messages go through to reach the user.
ssoadm service name:
sunAMAuthHOTPService
Change this if you must customize the SMS gateway implementation. The default class sends an SMS or email, depending on the configuration.
ssoadm attribute:
sunAMAuthHOTPSMSGatewayImplClassName
Host name of the mail server supporting Simple Message Transfer Protocol for electronic mail.
ssoadm attribute:
sunAMAuthHOTPSMTPHostName
The default SMTP port is 25, 465 (when connecting over SSL).
ssoadm attribute:
sunAMAuthHOTPSMTPHostPort
User name for OpenAM to connect to the mail server.
ssoadm attribute:
sunAMAuthHOTPSMTPUserName
Password for OpenAM to connect to the mail server.
ssoadm attribute:
sunAMAuthHOTPSMTPUserPassword
If OpenAM connects to the mail server securely, OpenAM must be able to trust the server certificate.
ssoadm attribute:
sunAMAuthHOTPSMTPSSLEnabled
The From: address when sending a one-time
password by mail.
ssoadm attribute:
sunAMAuthHOTPSMTPFromAddress
One-time passwords are valid for 5 minutes after they are generated by default.
ssoadm attribute:
sunAMAuthHOTPPasswordValidityDuration
Set the length of the one-time password to 6 or 8 digits.
ssoadm attribute:
sunAMAuthHOTPPasswordLength
Send the one-time password by SMS, by mail, or both.
ssoadm attribute:
sunAMAuthHOTPasswordDelivery
Provides the attribute name used for the text message. The
default value is telephoneNumber.
ssoadm attribute:
openamTelephoneAttribute
Provides the name of the carrier that will send the text message.
ssoadm attribute:
openamSMSCarrierAttribute
Provides the attribute name used to email the OTP. The
default value is mail (email).
ssoadm attribute:
openamEmailAttribute
Setup the HOTP module to automatically generate an email or text message when users begin the login process.
ssoadm attribute:
sunAMAuthHOTPAutoClicking
ssoadm attribute:
sunAMAuthHOTPAuthLevel
HTTP basic authentication takes a user name and password from HTTP authentication and tries authentication against the backend module in OpenAM, depending on what you configure as the Backend Module Name.
ssoadm service name:
iPlanetAMAuthHTTPBasicService
Specifies the module that checks the user credentials.
ssoadm attribute:
iplanet-am-auth-http-basic-module-configured
ssoadm attribute:
iplanet-am-auth-httpbasic-auth-level
The Java Database Connectivity (JDBC) module lets OpenAM connect to a database such as MySQL or Oracle DB to authenticate users.
ssoadm service name:
sunAMAuthJDBCService
Choose Connection pool is retrieved via JNDI to connect using the Java Naming and Diretory Interface connection pool supported by the web container in which OpenAM runs. Choose Non-persistent JDBC connection to connect directly through the JDBC driver.
ssoadm attribute:
sunAMAuthJDBCConnectionType
When using Connection pool is retrieved via JNDI, this specifies the pool. How you configure connection pooling depends on the web container where you run OpenAM. Refer to the documentation for your web container for instructions on setting up connection pooling.
ssoadm attribute:
sunAMAuthJDBCJndiName
When using Non-persistent JDBC connection, this specifies the JDBC driver provided by the database.
The .jar containing the JDBC driver belongs in the
WEB-INF/lib directory of the deployed OpenAM
instance, and so you should add it to a custom OpenAM .war file that you
deploy.
ssoadm attribute:
sunAMAuthJDBCDriver
When using Non-persistent JDBC connection, this specifies the URL to connect to the database.
ssoadm attribute:
sunAMAuthJDBCUrl
Specify the user name to open the database connection.
ssoadm attribute:
sunAMAuthJDBCDbuser
Specify the password for the user opening the database connection.
ssoadm attribute:
sunAMAuthJDBCDbpassword
Specify the database column name where passwords are stored.
ssoadm attribute:
sunAMAuthJDBCPasswordColumn
Specify the SQL query to return the password corresponding to the user to authenticate.
ssoadm attribute:
sunAMAuthJDBCStatement
Specify the class that transforms the password retrieved to the same format as provided by the user.
The default class expects the password in clear text. Custom
classes must implement the
JDBCPasswordSyntaxTransform interface.
ssoadm attribute:
sunAMAuthJDBCPasswordSyntaxTransformPlugin
ssoadm attribute:
sunAMAuthJDBCAuthLevel
OpenAM connects to directory servers using Lightweight Directory Access Protocol (LDAP). To build an easy-to-manage, high performance, pure Java, open source directory service, try OpenDJ directory services.
ssoadm service name:
iPlanetAMAuthLDAPService
Directory servers generally use built-in data replication for high availability. Thus a directory service likely consists of a pool of replicas to which OpenAM can connect to retrieve and update directory data. You set up primary and secondary servers in case a replica is down due to maintenance or to a problem with a particular server.
Set one primary and optionally one secondary directory server for
each OpenAM server. For the current OpenAM server, specify each directory
server as a
combination. For other OpenAM servers in the deployment, you can specify
each directory server as
host:port,
where server-name|host:portserver-name is the Server Name of the
OpenAM server from the list under Configuration > Servers and
Sites, and host:port
identifies the directory server.
When authenticating users from a directory service that is remote from OpenAM, set both the primary and secondary server values.
The default port for LDAP is 389. If you are connecting to the directory over SSL, the default port for LDAP/SSL is 636.
If you want to use SSL or TLS for security, then scroll down to enable SSL/TLS Access to LDAP Server. Make sure that OpenAM can trust the servers' certificates when using this option.
ssoadm attributes:
primary is iplanet-am-auth-ldap-server,
secondary is iplanet-am-auth-ldap-server2, and
iplanet-am-auth-ldap-ssl-enabled
LDAP data is organized hierarchically, a bit like a file system
on Windows or UNIX. More specific DNs likely result in better search
performance. When configuring the module for a particular part of the
organization, you can perhaps start searches from a specific
organizational unit such as
ou=sales,dc=example,dc=com.
If multiple entries exist with identical search attribute values, make this value specific enough to return only one entry.
ssoadm attribute:
iplanet-am-auth-ldap-base-dn
If OpenAM stores attributes in the directory, for example to manage account lockout, or if the directory requires that OpenAM authenticate in order to read users' attributes, then OpenAM needs the DN and password to authenticate to the directory.
The default is cn=Directory Manager. Make sure
that password is correct before you logout. If it is incorrect, you will
be locked out. If this should occur, you can login with the super user DN,
which by default is
uid=amAdmin,ou=People,,
where OpenAM-deploy-baseOpenAM-deploy-base you set during
OpenAM configuration.
ssoadm attributes:
iplanet-am-auth-ldap-bind-dn,
iplanet-am-auth-ldap-bind-passwd
LDAP searches for user entries return entries with attribute
values matching the filter you provide. For example if you search under
ou=people,dc=example,dc=com with a filter
"(mail=bjensen@example.com)", then the directory
returns the entry that has mail=bjensen@example.com.
In this example the attribute used to search for a user is
mail. Multiple attribute values mean the user can
authenticate with any one of the values. For example, if you have
both uid and mail, then Barbara
Jensen can authenticate with either bjensen or
bjensen@example.com.
Should you require a more complex filter for performance, you
add that to the User Search Filter text box. For example, if you search
on mail and add User Search Filter
(objectClass=inetOrgPerson), then OpenAM uses the
resulting search filter
(&(mail=,
where address)(objectClass=inetOrgPerson))address is the mail address provided
by the user.
Scope OBJECT means search only the entry specified as the DN to Start User Search, whereas ONELEVEL means search only the entries that are directly children of that object. SUBTREE means search the entry specified and every entry under it.
ssoadm attributes:
iplanet-am-auth-ldap-user-naming-attribute,
iplanet-am-auth-ldap-user-search-attributes,
iplanet-am-auth-ldap-search-filter, and
iplanet-am-auth-ldap-search-scope
When enabled, and OpenAM uses the directory service as the user store, the module returns the DN rather than the rather than the User ID, so the bind for authentication can be completed without a search to retrieve the DN.
ssoadm attribute:
iplanet-am-auth-ldap-return-user-dn
Specifies the number of minutes between checks that the primary LDAP server continues to respond.
ssoadm attribute:
iplanet-am-auth-ldap-server-check
This list lets you map (external) attribute names from Active Directory to (internal) attribute names used by OpenAM.
ssoadm attribute:
iplanet-am-ldap-user-creation-attr-list
Specify the minimum acceptable password length.
ssoadm attribute:
iplanet-am-auth-ldap-min-password-length
When enabled, blindly trust server certificates, including self-signed test certificates.
ssoadm attribute:
iplanet-am-auth-ldap-ssl-trust-all
When enabled, support interoperability with servers that implement the Internet-Draft, Password Policy for LDAP Directories.
Support for this Internet-Draft is limited to the LDAP
authentication module. Other components of OpenAM, such as the password
change functionality in the /idm/EndUser page, do
not support the Internet-Draft. In general, outside of the LDAP
authentication module, OpenAM binds to the directory server as an
administrator, such as Directory Manager. When OpenAM binds to the
directory server as an administrator rather than as an end user, many
features of the Internet-Draft password policies do not apply.
ssoadm attribute:
iplanet-am-auth-ldap-behera-password-policy-enabled
ssoadm attribute:
iplanet-am-auth-ldap-auth-level
The Membership module permits self-registration for new users. You can then have OpenAM create new user profiles in the identity repository.
ssoadm service name:
iPlanetAMAuthMembershipService
Specify the minimum acceptable number of characters in the password provided during self-registration.
ssoadm attribute:
iplanet-am-auth-membership-min-password-length
Specifies the Distinguished Name (DN) of a role to be assigned to a new user whose profile is created. There are no default values. The role specified must be within the realm for which the authentication process is configured.
This role can be either an OpenAM or Sun DSEE role, but it cannot be a filtered role. If you wish to automatically assign specific services to the user, you have to configure the Required Services attribute in the User Profile.
ssoadm attribute:
iplanet-am-auth-membership-default-roles
If you choose Inactive, then the new user has no access to services until an administrator activates the account.
ssoadm attribute:
iplanet-am-auth-membership-default-user-status
ssoadm attribute:
iplanet-am-auth-membership-auth-level
The Mobile Station Integrated Services Digital Network (MSISDN) authentication module enables non-interactive authentication using a mobile subscriber ISDN associated with a terminal such as a mobile phone. The module checks the subscriber ISDN against the value found on a user's entry in an LDAP directory service.
ssoadm service name:
sunAMAuthMSISDNService
Specifies a list of IP addresses of trusted clients that can access
MSIDSN modules. Either restrict the clients allowed to access the MSISDN
module by add each IPv4 address here, or leave the list empty to allow
all clients to access the module. If you specify the value
none, no clients are allowed access.
ssoadm attribute:
sunAMAuthMSISDNTrustedGatewayList
Specifies a list of parameter names that identify which parameters to search in the request header or cookie header for the MSISDN number. For example, if you define x-Cookie-Param, AM_NUMBER, and COOKIE-ID, the MSISDN authentication service checks those parameters for the MSISDN number.
ssoadm attribute:
sunAMAuthMSISDNParameterNameList
The default port for LDAP is 389. If you are connecting to the directory over SSL, the default port for LDAP/SSL is 636.
If you want to use SSL or TLS for security, then scroll down to enable SSL/TLS Access to LDAP. Make sure that OpenAM can trust the servers' certificates when using this option.
ssoadm attribute:
sunAMAuthMSISDNLdapProviderUrl
Specify the DN of the entry where the search for the user's MSISDN number should start.
ssoadm attribute:
sunAMAuthMSISDNBaseDn
Specify the name of the attribute in the user's profile that
contains the MSISDN number to search for the user. The default is
sunIdentityMSISDNNumber.
ssoadm attribute:
sunAMAuthMSISDNUserSearchAttribute
If OpenAM must authenticate to the directory server in order to
search, then specify the bind DN. The default is
cn=amldapuser,ou=DSAME Users,dc=example,dc=com.
ssoadm attribute:
sunAMAuthMSISDNPrincipalUser
Specify the password corresponding to the bind DN.
ssoadm attribute:
sunAMAuthMSISDNPrincipalPasswd
If you choose to use SSL or TLS for security, then make sure that OpenAM can trust the servers' certificates.
ssoadm attribute:
sunAMAuthMSISDNUseSsl
Specify the headers to use for searching the request for the MSISDN number.
Cookie Header tells OpenAM to search the cookie.
Request Header tells OpenAM to search the request header.
Request Parameter tells OpenAM to search the request parameters.
ssoadm attribute:
sunAMAuthMSISDNHeaderSearch
Specify the LDAP attribute that is used during a search to return
the user profile for MSISDN authentication service. The default is
uid.
ssoadm attribute:
sunAMAuthMSISDNUserNamingAttribute
Enable this option only when the OpenAM directory is the same as the directory configured for MSISDN searches. When enabled, this option allows the authentication module to return the DN instead of the User ID. OpenAM thus does not need to perform an additional search with the user ID to find the user's entry.
ssoadm attribute:
sunAMAuthMSISDNReturnUserDN
ssoadm attribute:
sunAMAuthMSISDNAuthLevel
The Open Authentication (OATH) module provides a more secure method for users to access their accounts with the help of a device, such as their mobile phone or Yubikey. Users can log into OpenAm and update their information more securely from a one-time password (OTP) displayed on their device. The OATH module includes the OATH standard protocols (RFC 4226 and RFC 6238). The OATH module has several enhancements to the HMAC One-Time Password (HOTP) Authentication Module, but does not replace the original module for those already using HOTP prior to the 10.1.0 release. The OATH module includes HOTP authentication and Time-Based One-Time Password (TOTP) authentication. Both types of authentication require an OATH compliant device that can provide the OTP.
HOTP authentication generates the OTP every time the user requests a new OTP on their device. The device tracks the number of times the user requests a new OTP, called the counter. The OTP displays for a period of time you designate in the setup, so the user may be further in the counter on their device than on their account. OpenAM will resynchronize the counter when the user finally logs in. To accommodate this, you set the number of passwords a user can generate before their device cannot be resynchronized. For example, if you set the number of HOTP Window Size to 50 and a two-year old presses the button 30 on the user's device to generate a new OTP, the counter in OpenAM will review the OTPs until it reaches the OTP entered by the user. If the two-year old presses the button 51 times, you will need to reset the counter to match the number on the device's counter before the user can login to OpenAM. HOTP authentication does not check earlier passwords, so if the user attempts to reset the counter on their device, they will not be able to login until you reset the counter in OpenAM to match their device.
TOTP authentication constantly generates a new OTP based on a time interval you specify. The device tracks the last two passwords generated and the current password. The Last Login Time monitors the time when a user logs in to make sure that user is not logged in several times within the present time period. Once a user log into OpenAM, they must wait for the time it takes TOTP to generate the next two passwords and display them. This prevents others from being able to access the users account using the OTP they entered. The user's account can be accessed again after the generation of the third new OTP is generated and displayed on their device.For this reason, the TOTP Time-Step Interval should not be so long as to lock users out, with a recommended time of 30 seconds.
An authentication chain can be created to generate an OTP from either HOTP or TOTP.
ssoadm service name:
iPlanetAMAuthOATHService
Set the length of the OTP between 6 and 9 digits long. The default value is 6 digits.
ssoadm attribute:
iPlanetAMAuthOATHPasswordLength
The name of the attribute where the key will be stored in the user profile.
ssoadm attribute:
iPlanetAMAuthOATHSecretKeyAttribute
Select whether to use HOTP or TOTP. You can create an authentication chain to allow for a greater variety of devices. The default value is HOTP.
ssoadm attribute:
iPlanetAMAuthOATHAlgorithm
The number of requests that the system and the device can be off to resynchronize the password. If a user passes this number of requests before logging into the system, the password will not work. The default value is 100.
ssoadm attribute:
iPlanetAMAuthOATHHOTPWindowSize
The name of the HOTP attribute where the counter will be stored in the user profile.
ssoadm attribute:
iPlanetAMAuthOATHHOTPCounterAttribute
Adds a checksum digit at the end of the HOTP password to verify it was entered correctly. The default value is No.
ssoadm attribute:
iPlanetAMAuthOATHAddChecksum
Advanced feature that is device specific. Any value below 0 or above 15 will turn off the functionality. The default value is -1. If not required by the device, leave at the default setting.
ssoadm attribute:
iPlanetAMAuthOATHTruncationOffset
Defines how long the password will appear on the user's device (in seconds). We recommend keeping this number low, for example 30 seconds, because once a user logs out, they will not be able to login again until two full time cycles have passed. The default value is 30 seconds.
ssoadm attribute:
iPlanetAMAuthOATHSizeofTimeStep
The number of requests that the system and the device can be off to resynchronize the password. If a user passes this number of requests before logging into the system, the password will not work. The default value is 2.
ssoadm attribute:
iPlanetAMAuthOATHStepsinWindow
The name of the attribute where both HOTP and TOTP authentication will store information on when a person last logged in.
ssoadm attribute:
iPlanetAMAuthOATHLastLoginTimeAttributeName
ssoadm attribute:
sunAMAuthHOTPAuthLevel
The OAuth 2.0 authentication module lets OpenAM authenticate clients of OAuth resource servers. References in this section are to RFC 6749, The OAuth 2.0 Authorization Framework.
The default settings are for Facebook.
ssoadm service name:
sunAMAuthOAuthService
OAuth client_id as described in
section 2.2 of RFC 6749.
ssoadm attribute:
iplanet-am-auth-oauth-client-id
OAuth client_secret as described in
section 2.3 of RFC 6749.
ssoadm attribute:
iplanet-am-auth-oauth-client-secret
URL to the end point handling OAuth authentication as described in
section 3.1 of RFC 6749. The default value is
https://www.facebook.com/dialog/oauth.
ssoadm attribute:
iplanet-am-auth-oauth-auth-service
URL to the end point handling access tokens as described in
section 3.2 of RFC 6749. The default value is
https://graph.facebook.com/oauth/access_token.
ssoadm attribute:
iplanet-am-auth-oauth-token-service
User profile URL that returns profile information in JSON
format. The default value is
https://graph.facebook.com/me.
ssoadm attribute:
iplanet-am-auth-oauth-user-profile-service
Comma separated list of user profile attributes that the application
requires. The default value is email,read_stream.
ssoadm attribute:
iplanet-am-auth-oauth-scope
URL to the /oauth2c/OAuthProxy.jsp file,
part of OpenAM.
ssoadm attribute:
iplanet-am-auth-oauth-sso-proxy-url
Class implementing account mapping. The default value is
org.forgerock.openam.authentication.modules.oauth2.DefaultAccountMapper.
ssoadm attribute:
org-forgerock-auth-oauth-account-mapper
Map of OAuth Provider user account attributes used to find the
local profile of the authenticated user, with values in the form
.
Default values provider-attr=local-attremail=mail and id=facebook-id.
ssoadm attribute:
org-forgerock-auth-oauth-account-mapper-configuration
Class implementing attribute mapping. Default:
org.forgerock.openam.authentication.modules.oauth2.DefaultAttributeMapper
ssoadm attribute:
org-forgerock-auth-oauth-attribute-mapper
Map of OAuth Provider user account attributes to local user profile
attributes, with values in the form
.provider-attr=local-attr
ssoadm attribute:
org-forgerock-auth-oauth-attribute-mapper-configuration
When enabled, add the mapped attributes to the session saved. The
default mode is Enabled.
ssoadm attribute:
org-forgerock-auth-oauth-save-attributes-to-session-flag
Specifies the attribute identifying email address in the response from the profile service in the OAuth provider. This setting is used to send an email address with an activation code for accounts created dynamically.
ssoadm attribute:
org-forgerock-auth-oauth-mail-attribute
When enabled, if the user profile does not exist, optionally
retrieve a password and activation code from the user, and then create
the profile. The default mode is Enabled.
When the OAuth 2.0 client is configured to create new accounts, the SMTP settings must also be valid. As part of account creation, the OAuth 2.0 client authentication module sends the resource owner an email with an account activation code. To send the mail, OpenAM uses the SMTP settings you provide here in the OAuth 2.0 client configuration.
ssoadm attribute:
org-forgerock-auth-oauth-createaccount-flag
When enabled, the user sets a password, receives an activation code
by email. The user must correctly set both in order for the account to
be created. The default mode is Enabled.
ssoadm attribute:
org-forgerock-auth-oauth-prompt-password-flag
When enabled, map the OAuth authenticated user to the anoymous user you specify. No account is created, even if Create account if it does not exist is enabled.
ssoadm attribute:
org-forgerock-auth-oauth-map-to-anonymous-flag
Specifies an anonymous user that exists in the current realm. The
default is anonymous.
ssoadm attribute:
org-forgerock-auth-oauth-anonymous-user
Specifies the optional URL of the OAuth Provider.
ssoadm attribute:
org-forgerock-auth-oauth-logout-service-url
Specifies whether not to log the user out without prompting from the OAuth Provider on logout, to log the user out without prompting, or to prompt the user regarding whether to logout from the OAuth provider.
ssoadm attribute:
org-forgerock-auth-oauth-logout-behaviour
Class to interact with the mail server. Default:
org.forgerock. openam.authentication.modules.oauth2.DefaultEmailGatewayImpl
ssoadm attribute:
org-forgerock-auth-oauth-email-gwy-impl
Host name of the mail server. The default is
localhost.
ssoadm attribute:
org-forgerock-auth-oauth-smtp-hostname
SMTP port number for the mail server. The default value is
25.
ssoadm attribute:
org-forgerock-auth-oauth-smtp-port
If the mail server requires authentication to send mail, specifies the user name.
ssoadm attribute:
org-forgerock-auth-oauth-smtp-username
If the mail server requires authentication to send mail, specifies the password.
ssoadm attribute:
org-forgerock-auth-oauth-smtp-password
When enabled, connect to the mail server over SSL. OpenAM must be able to trust the SMTP server certificate.
ssoadm attribute:
org-forgerock-auth-oauth-smtp-ssl_enabled
Specifies the message sender address, such as
no-reply@example.com. The default value is
info@forgerock.com.
ssoadm attribute:
org-forgerock-auth-oauth-smtp-email-from
ssoadm attribute:
iplanet-am-auth-oauth-auth-level
The following tables show endpoint URLs for OpenAM when configured as an OAuth 2.0 provider, and also URLs for large OAuth 2.0 providers. The default endpoints are for Facebook as the OAuth 2.0 provider.
In addition to the endpoint URLs you can set other fields, like scope and attribute mapping, depending on the provider you use.
| OpenAM Field | Details |
|---|---|
| Authentication Endpoint URL |
Example: |
| Access Token Endpoint URL |
Example: |
| User Profile Service URL |
Example: |
[a] This OpenAM endpoint can take additional parameters. In particular you must specify the realm if the OpenAM OAuth 2.0 provider is configured for a subrealm rather than / (Top-Level Realm). For example, if the OAuth 2.0 provider is configured for the
realm The | |
| OpenAM Field | Details |
|---|---|
| Authentication Endpoint URL | https://www.facebook.com/dialog/oauth |
| Access Token Endpoint URL | https://graph.facebook.com/oauth/access_token |
| User Profile Service URL | https://graph.facebook.com/me |
| OAuth 2.0 Provider logout service | http://www.facebook.com/logout.php |
| OpenAM Field | Details |
|---|---|
| Authentication Endpoint URL | https://accounts.google.com/o/oauth2/auth |
| Access Token Endpoint URL | https://accounts.google.com/o/oauth2/token |
| User Profile Service URL | https://www.googleapis.com/oauth2/v1/userinfo |
| OAuth 2.0 Provider logout service | https://mail.google.com/mail/?logout |
| OpenAM Field | Details |
|---|---|
| Authentication Endpoint URL | https://oauth.live.com/authorize |
| Access Token Endpoint URL | https://oauth.live.com/token |
| User Profile Service URL | https://apis.live.net/v5.0/me |
| OAuth 2.0 Provider logout service | http://oauth.live.com/logout |
The Remote Authentication Dial-In User Service (RADIUS) module lets OpenAM authenticate users against RADIUS servers.
ssoadm service name:
iPlanetAMAuthRadiusService
Specify the IP address or fully qualified domain name of the
primary RADIUS server. The default is 127.0.0.1
(localhost loopback).
ssoadm attribute:
iplanet-am-auth-radius-server1
Specify the IP address or fully qualified domain name of the
secondary RADIUS server. The default is 127.0.0.1.
ssoadm attribute:
iplanet-am-auth-radius-server2
Specify the shared secret for RADIUS authentication. The shared secret should be as secure as a well-chosen password.
ssoadm attribute:
iplanet-am-auth-radius-secret
Specify the RADIUS server port. Default is 1645.
ssoadm attribute:
iplanet-am-auth-radius-server-port
Specify how many seconds to wait for the RADIUS server to respond. The default value is 3 seconds.
ssoadm attribute:
iplanet-am-auth-radius-timeout
Used for failover. Specify how often OpenAM performs a health check on a previously unavailable RADIUS server by sending an invalid authentication request. Default: 5 minutes
ssoadm attribute:
openam-auth-radius-healthcheck-interval
ssoadm attribute:
iplanet-am-auth-radius-auth-level
The Secure Attribute Exchange (SAE) module lets OpenAM authenticate a user who has already authenticated with an entity that can vouch for the user to OpenAM, so that OpenAM creates a session for the user. This module is useful in virtual federation, where an existing entity instructs the local OpenAM instance to use federation protocols to transfer authentication and attribute information to a partner application.
ssoadm service name:
sunAMAuthSAEService
ssoadm attribute:
sunAMAuthSAEAuthLevel
The SecurID module lets OpenAM authenticate users with RSA Authentication Manager software and RSA SecurID authenticators.
ssoadm service name:
iPlanetAMAuthSecurIDService
Specify the directory in which the SecurID ACE/Server
sdconf.rec file is located, which by default is
expected under the configuration directory for OpenAM, such as
$HOME/openam/openam/auth/ace/data. The directory
must exist before OpenAM can use SecurID authentication.
ssoadm attribute:
iplanet-am-auth-securid-server-config-path
ssoadm attribute:
iplanet-am-auth-securid-auth-level
The Windows Desktop SSO module uses Kerberos authentication. The user presents a Kerberos token to OpenAM through the Simple and Protected GSS-API Negotiation Mechanism (SPNEGO) protocol. The Windows Desktop SSO authentication module enables desktop single sign on such that a user who has already authenticated with a Kerberos Key Distribution Center can authenticate to OpenAM without having to provide the login information again. Users might need to set up Integrated Windows Authentication in Internet Explorer to benefit from single sign on when logged on to a Windows desktop.
ssoadm service name:
iPlanetAMAuthWindowsDesktopSSOService
Specify the Kerberos principal for authentication in the following format.
HTTP/host.domain@dc-domain-name
Here, host and
domain correspond to the host and domain names
of the OpenAM instance, and dc-domain-name
is the domain name of the Windows Kerberos domain controller server.
The dc-domain-name can differ from the domain
name for OpenAM.
You set up the account on the Windows domain controller, creating a computer account for OpenAM and associating the new account with a service provider name.
ssoadm attribute:
iplanet-am-auth-windowsdesktopsso-principal-name
Specify the full path of the keytab file for the Service Principal. You generate the keytab file using the Windows ktpass utility.
ssoadm attribute:
iplanet-am-auth-windowsdesktopsso-keytab-file
Specify the Kerberos Key Distribution Center realm. For the Windows Kerberos service this is the domain controller server domain name.
ssoadm attribute:
iplanet-am-auth-windowsdesktopsso-kerberos-realm
Specify the fully qualified domain name of the Kerberos Key Distribution Center server, such as that of the domain controller server.
ssoadm attribute:
iplanet-am-auth-windowsdesktopsso-kdc
When enabled, OpenAM automatically returns the Kerberos principal with the domain controller's domain name during authentication.
ssoadm attribute:
iplanet-am-auth-windowsdesktopsso-returnRealm
ssoadm attribute:
iplanet-am-auth-windowsdesktopsso-auth-level
The Windows NT module lets OpenAM authenticate against a Microsoft Windows NT server.
This module requires that you install a Samba client in a
bin directory under the OpenAM configuration directory
such as $HOME/openam/openam/bin.
ssoadm service name:
iPlanetAMAuthNTService
Specify the Windows domain name to which users belong.
ssoadm attribute:
iplanet-am-auth-nt-domain
Specify the NetBIOS name of the Windows NT host to which to authenticate users.
ssoadm attribute:
iplanet-am-auth-nt-host
Specify the full path to the Samba configuration file.
ssoadm attribute:
iplanet-am-auth-samba-config-file-name
ssoadm attribute:
iplanet-am-auth-nt-auth-level
The Web Service Security (WSSAuth) module lets OpenAM validate a user name, password combination received as an authentication token in a request from a Web Service Client to a Web Service Provider.
ssoadm service name:
sunAMAuthWSSAuthModuleService
Specify a user attribute to search for a user. Default is
uid.
ssoadm attribute:
sunWebservicesUserSearchAttribute
Specify the realm to which users belong. For the OpenAM Security
Token Service, this is /.
ssoadm attribute:
sunWebServicesUserRealm
Specify the password attribute or that of the password equivalent.
The default is userPassword.
ssoadm attribute:
sunWebservicesUserPasswordAttribute
ssoadm attribute:
sunWebservicesAuthenticationLevel
Once you have configured authentication modules, and added the modules to the list of module instances, you can configure authentication chains. Authentication chains let you handle situations where alternative modules are needed, or where a single set of credentials is not sufficient.
On the Access Control tab page of the OpenAM console, click the realm for which to create the authentication chain.
On the Authentication tab page for the realm, scroll to the bottom of the page, and click the New button in the Authentication Chaining table.
Give the new authentication chain a name, and add instances of the modules to use in the chain.
Assign at least criteria (optional, required, requisite, sufficient) as described above in Section 2.1, “About Authentication in OpenAM”. You can also configure where OpenAM redirects the user upon successful and failed authentication, and plug in your post-authentication processing classes as necessary.
If you need modules in the chain to share user credentials, then set options for the module.
iplanet-am-auth-shared-state-enabledSet iplanet-am-auth-shared-state-enabled=true
to allow subsequent modules in the authentication chain to use
the credentials, such as user name and password, captured by this
module. (Default: true)
iplanet-am-auth-store-shared-state-enabledSet iplanet-am-auth-store-shared-state-enabled=true
to store the captured credentials. Shared state is cleared when the
user successfully authenticates, quits the chain, or logs out.
(Default: false)
iplanet-am-auth-shared-state-behavior-patternSet iplanet-am-auth-shared-state-behavior-pattern=tryFirstPass
(the default) to try authenticating with the captured password. If
authentication fails, then OpenAM prompts the user for the credentials
again.
Set iplanet-am-auth-shared-state-behavior-pattern=useFirstPass
to authenticate with the captured password. If authentication fails,
then the module fails.
For example, consider a chain with two modules sharing credentials
according to the default settings. The first module in the chain has the
option iplanet-am-auth-shared-state-enabled=true, and
criteria REQUIRED. The second module in the chain has
options iplanet-am-auth-shared-state-enabled=true,
iplanet-am-auth-shared-state-behavior-pattern=tryFirstPass,
and criteria REQUIRED. A successful authentication
sequence happens as follows. The user enters her credentials for the first
module, successfully authenticating. The first module shares the
credentials with the second module, successfully authenticating the user
without prompting again for her credentials, unless the credentials for
the first module do not successfully authenticate here to the second
module.
Save your work.
Before you select the default chain for users, and especially for
administrators, test the authentication chain first. For example,
http://openam.example.com:8080/openam/UI/Login?service=NewChain.
If you cannot log in, then go back and fix the authentication chain's
configuration before making it the default.
On the Access Control tab page of the OpenAM console, click the realm for which to set the default authentication chain.
If necessary, on the Authentication tab page for the realm, adjust the drop-down lists for Organization Authentication Configuration and Administrator Authentication Configuration to the appropriate authentication chains.
The Organization Authentication Configuration serves when users
access /openam/UI/Login.
The Administrator Authentication Configuration serves when users
access /openam/console.
You can set these independently to separate administrative login
from user login. For example, you can change the default user chain, but
leave the default administrator chain as is to avoid locking yourself
out as administrator. By default, amadmin can login at
/openam/UI/Login. You can change that for your
deployment.
Save your work.
Post authentication plugins include custom processing at the end of the authentication process, immediately before the subject is authenticated. Common uses of post authentication plugins include setting cookies and session variables. Post authentication plugins are often used in conjunction with policy agents. The post authentication plugin sets custom session properties, and then the policy agent injects the custom properties into the request header to the protected application.
In the OpenAM console, you add post authentication plugins to an
authentication chain by adding their class names to the Post Authentication
Processing Class list under Access Control > Realm
Name > Authentication > Authentication Chaining >
Auth Chain Name.
OpenAM provides some post authentication plugins as part of the standard product delivery.
org.forgerock.openam.authentication.modules.adaptive.AdaptiveThe adaptive authentication plugin serves to save cookies and profile attributes after successful authentication.
Add it to your authentication chains that use the adaptive authentication module configured to save cookies and profile attributes.
org.forgerock.openam.authentication.modules.oauth2.OAuth2PostAuthnPluginThe OAuth 2.0 post authentication plugin builds a global logout URL
used by /oauth2c/OAuthLogout.jsp after successful
OAuth 2.0 client authentication. This logs the resource owner out
with the OAuth 2.0 provider when logging out of OpenAM.
Before using this plugin, configure the OAuth 2.0 authentication module with the correct OAuth 2.0 Provider logout service URL, and set the Logout options to Log out or Prompt. This plugin cannot succeed unless those parameters are correctly set.
Sometimes OAuth 2.0 providers change their endpoints, including their logout URLs. When using a provider like Facebook, Google, or MSN make sure you are aware when they change their endpoint locations so that you can change your client configuration accordingly.
org.forgerock.openam.authentication.plugins.AccountExpirePluginThe account expiration post authentication plugin sets an account expiration date after successful authentication. OpenAM uses this to prevent expired accounts from being used to authenticate.
The default of 30 days can be changed using the advanced OpenAM
server property,
org.forgerock.openam.authentication.accountExpire.days.
If necessary, you can also write your own custom post authentication plugin as described in the Developer's Guide chapter on Creating a Post Authentication Plugin.
This section explains how to connect to OpenAM for user authentication by adding parameters to the login URL when testing your configuration.
The base URL to authenticate to OpenAM points to
/UI/Login under the deployment URL, such as
http://openam.example.com:8080/openam/UI/Login.
[4] You can, however, specify parameters in the query string
of the URL to request a specific authentication configuration. For example,
http://openam.example.com:8080/openam/UI/Login?module=LDAP
requests that OpenAM use the LDAP authentication module.
OpenAM accepts the following parameters in the query string. With
the exception of IDToken parameters, use no more than
one occurrence of each.
Request that OpenAM end the user's current session and start a new session.
Example: http://openam.example.com:8080/openam/UI/Login?arg=newsession
Request that OpenAM authenticate the user using a module with at least the specified authentication level that you have configured.
As this parameter determines authentication module selection, do
not use it with module, service,
or user.
Example: http://openam.example.com:8080/openam/UI/Login?authlevel=1
If ForceAuth=true, request that OpenAM force the
user to authenticate even if she already has a valid session. On
successful authentication, OpenAM updates the session token.
Example: http://openam.example.com:8080/openam/UI/Login?ForceAuth=true
On successful authentication, or successful logout, request that OpenAM redirect the user to the specified location. Values must be URL encoded.
Example: http://openam.example.com:8080/openam/UI/Login?goto=http%3A%2F%2Fwww.example.com%2Fsuccess.html
On authentication failure, request that OpenAM redirect the user to the specified location. Values must be URL encoded.
Example: http://openam.example.com:8080/openam/UI/Login?goto=http%3A%2F%2Fwww.example.com%2Ffailure.html
Pass the specified credentials as IDToken
parameters in the URL. The IDToken credentials map
to the fields in the login page for the authentication module, such as
IDToken1 as user ID and IDToken2
as password for basic user name, password authentication. The order
depends on the callbacks in login page for the module;
IDTokenN represents the Nth
callback of the login page.
Example: http://openam.example.com:8080/openam/UI/Login?IDToken1=bjensen&IDToken2=hifalutin
Request that OpenAM return a persistent cookie that remains in the browser after the browser is closed, allowing the user to login again without being prompted for credentials. This only works if you have configured persistent cookie mode for the realm where the user logs in.
Example: http://openam.example.com:8080/openam/UI/Login?iPSPCookie=yes
OpenAM sets an DProPCookie that persists until
expiry. The following screen shot shows an example.
An alternative persistent cookie mechanism extends the lifetime of
the normal iPlanetDirectoryPro using the advanced
server settings, openam.session.persist_am_cookie
or openam.session.allow_persist_am_cookie, and
com.iplanet.am.cookie.timeToLive.
To set the mechanism globally for the server, browse in the OpenAM
console to Configuration > Servers and Sites > Server
Name > Advanced, and then set
openam.session.persist_am_cookie to
true and
com.iplanet.am.cookie.timeToLive to the cookie lifetime
in seconds.
To allow users to use this mechanism on a per-session basis,
browse in the OpenAM console to Configuration > Servers and
Sites > Server Name > Advanced, and then
set openam.session.allow_persist_am_cookie to
true and
com.iplanet.am.cookie.timeToLive to the cookie lifetime
in seconds. (If the OpenAM .war deployed does not include the console, set
these properties in the .properties configuration file.) Also configure
the session properties either globally under Configuration > Global
> Session > Dynamic Attributes, or per realm under Access Control
> Realm Name > Services > Session.
Then, to request the cookie, use
openam.session.persist_am_cookie=Yes as one of the
query string parameters in the login URL.
Request that OpenAM display the user interface in the specified, supported locale. Locale can also be set in the user's profile, in the HTTP header from her browser, configured in OpenAM, and so on.
Example: http://openam.example.com:8080/openam/UI/Login?locale=fr
Request that OpenAM use the authentication module instance as configured for the realm where the user is authenticating.
As this parameter determines authentication module selection, do
not use it with authlevel, service,
or user.
Example: http://openam.example.com:8080/openam/UI/Login?module=DataStore
Request that OpenAM authenticate the user to the specified realm.
Example: http://openam.example.com:8080/openam/UI/Login?realm=sales
Request that OpenAM authenticate the user with the specified authentication chain.
As this parameter determines authentication module selection, do
not use it with authlevel, module,
or user.
Example: http://openam.example.com:8080/openam/UI/Login?service=ExternalChain
Request that the user, specified by her OpenAM universal ID, authenticate according to the chain specified in her profile.
As this parameter determines authentication module selection, do
not use it with authlevel, module,
or service.
Example: http://openam.example.com:8080/openam/UI/Login?user=admin
OpenAM supports two different approaches to account lockout, where OpenAM locks an account after repeated authentication failures. Lockout works with modules for which users can enter a password incorrectly.
Memory lockout locks the user account, keeping track of the locked state only in memory, and then unlocking the account after a specified delay. Memory lockout is also released when OpenAM restarts.
Persistent (physical) lockout sets the user account status to
inactive in the user profile. For persistent lockout,
OpenAM tracks failed authentication attempts by writing to the user
repository.
Persistent account lockout works independently of account lockout mechanisms in the underlying directory server that serves as the user data store.
You configure account lockout by editing settings for the core authentication
module. Access the settings in OpenAM console under Access Control
> Realm Name > Authentication > All
Core Settings..., and then scroll down to the Account Lockout section.
The inline help explains the settings in detail.
Enable lockout by checking Login Failure Lockout Mode, setting the number of attenpts, and setting the lockout interval and duration.
You can also opt to warn users after several consecutive failures, or to multiply the lockout duration on each successive lockout.
You can set up email notification upon lockout to an administrator
if OpenAM is configured to send mail. (Servers and Sites > Server Name > General > Mail Server.)
For persistent lockout, OpenAM sets the value of the user's
inetuserstatus profile attribute to
inactive. You can also specify another attribute to
update on lockout. You can further set a non-default attribute on which
to store the number of failed authentication attempts. When you do store
the number of failed attempts in the data store, other OpenAM servers
accessing the user data store can also see the number.
If you need to unlock a user's account, find the user under Access
Control > Realm Name > Subjects > User,
set the user's User Status to Active, and click Save.
OpenAM lets you limit the number of active sessions for a user by setting session quotas. You also configure session quota exhaustion actions so that when a user goes beyond the session quota, OpenAM takes the appropriate action.
To enforce session quotas across multiple servers in a site, configure session failover as described in the Installation Guide chapter, Setting Up OpenAM Session Failover.
The session quota applies to all sessions opened for the same user (as represented by the user's universal identifier).
Log in to OpenAM Console as administrator, and then browse to Configuration > Global > Session.
Set Enable Quota Constraints to ON.
Set Resulting behavior if session quota exhausted.
The following settings are available by default.
DENY_ACCESSDeny access, preventing the user from creating an additional session.
DESTROY_NEXT_EXPIRINGRemove the next session to expire, and create a new session for the user. The next session to expire is the session with the minimum time left until expiration.
This is the default setting.
DESTROY_OLDEST_SESSIONRemove the oldest session, and create a new session for the user.
DESTROY_OLD_SESSIONSRemove all existing sessions, and create a new session for the user.
If none of these session quota exhaustion actions fit your deployment, you can implement a custom session quota exhaustion action. See the Developer's Guide chapter on Customizing Session Quota Exhaustion Actions for an example.
Set Active User Sessions to the session quota.
The default is 5 sessions.
Save your work.
If you have multiple servers but session failover is not configured, configure multi-server mode as described below.
If you have only a single OpenAM server, skip this step. OpenAM enforces the session quota you set for the server.
If you have multiple servers with session failover configured, then also skip this step. In this case OpenAM uses the session store to enforce session quotas globally across your deployment. In other words when the Set Active User Sessions is 5, a user can have a maximum of 5 active sessions.
If you have multiple OpenAM servers but session failover is not
configured, configure multi-server mode for session quotas. Browse to
Configuration > Servers and Sites > Default Server Settings or
Configuration > Servers and Sites > Server
Name, and then use the Advanced tab page to set the
following advanced server property.
openam.session.useLocalSessionsInMultiServerMode = true
When you set this property to true for your OpenAM
servers, users can potentially reach the session quota for each individual
server before all session quotas are exhausted. In other words if you have
4 OpenAM servers and Set Active User Sessions is 5, then the user can have
a maximum of 20 (5 * 4) sessions.
Authorization is determining whether to grant or deny a user access to a resource. Policies define how to determine whether to grant or deny access. This chapter describes how to configure authorization policies managed by OpenAM.
Applications rely on OpenAM for access management, which breaks down into authentication, or determining who is trying to access a resource, and authorization, or determining whether to grant or deny access. This is because whether access is granted generally depends on what the rules about access are, who is trying to gain access, and perhaps some other conditions, such as whether the access itself needs to happen over a secure channel or what time of day it is. To return to the international airport example, the rule may be that passengers with valid passports and visa presenting valid plane tickets are allowed through to the gate where the plane is waiting to take off, but only under the condition that the plane is going to leave soon. (You cannot expect to get to the gate today with a scheduled departure for three months from now.)
To allow OpenAM to determine whether to grant access, you define authorization policies. A policy includes rules that match what resources a user aims to access in what way and whether to grant or deny that access, subjects to whom the policy applies, and potentially conditions under which the policy applies. When queried about whether to let a user through to a protected resource, OpenAM decides to authorize access or not based on the applicable policy. OpenAM then communicates its decision to the application using OpenAM for access management, or in the common case to the policy agent installed in the server where the application runs. The application or the agent then enforces the authorization decision from OpenAM.
For example, consider the case where OpenAM protects a web site page that users access to update their profiles. An OpenAM policy agent installed in the web server intercepts client requests to enforce policy. The policy says that authenticated users can access the page to update their profiles as long come in over HTTPS, rather than HTTP.
When a user browses to the page to update her profile, the OpenAM policy agent intercepts the request. The policy agent notices that the request is to access a protected resource, but the request is coming from a user who has not yet logged in and has no authorization to visit the page. The agent therefore redirects the user to OpenAM.
OpenAM receives the redirected user, serving a login page that collects her email and password. With the email and password credentials, OpenAM authenticates the user, and gives her a session. OpenAM then redirects the user to the policy agent, which gets the policy decision from OpenAM for the page she wants to access, and grants access to the page. OpenAM and the policy agent use cookies set in the user's browser to reference her session. While the user has a valid session with OpenAM, she can go away to another page in her browser, come back to the update profile page, and gain access without having to enter her email and password again.
Notice how OpenAM and the policy agent handle the access in the example. The web site developer can offer a profile page, but the web site developer never has to manage login, nor has to handle who can access a page. As OpenAM administrator, you can change authentication and authorization independently of updates to the web site. You might need to agree with web site developers on how OpenAM identifies users so web developers can find their particular profiles, or identify the user by her own name when she logs in. Yet your organization is now spared from new web site development projects when you want to add external access to your Intranet for roaming users, open certain of your sites to partners, only let managers access certain pages of your HR web site, or allow users already logged in to their desktops to visit protected web sites without having to type their user names and passwords again.
When OpenAM denies a request due to a condition that could be corrected by further authentication, OpenAM can send advice to the policy agent, and the policy agent can then take remedial action. For instance, suppose a user comes to a web site having authenticated with an email address and password, which is configured as authentication level 0. Had the user authenticated over the VPN which relies on one-time password authentication, she would have had authentication level 1 in her session. Yet, because she has authentication level 0, she currently cannot access the page she wants, which requires authentication level 1. OpenAM can send advice in this case, prompting the agent or application to redirect her to authenticate again with a one-time password, gaining authentication level 1, and thus having OpenAM grant her access to the protected page.
Policies can include response providers. Response providers extend HTTP headers with additional information beyond an "allow" or "deny" decision. For example, a response provider can return a message about why access was denied.
An OpenAM authorization policy defines who can access what, under what conditions. The OpenAM agents enforcing policy call upon OpenAM to make policy decisions. Decisions from OpenAM can be as simple as "allow" or "deny." Decisions from OpenAM can alternatively provide additional information required for policy enforcement. OpenAM policies use response providers to return such additional information.
In the OpenAM console, select Access Control > Realm
Name > Policies, then click New Policy...
Provide at minimum a name for the policy.
Once a policy is created, you can further specify rules, subjects, conditions, and response providers.
OpenAM has, by default, three kinds of resources that you can protect with a policy.
A Discovery Service, used in federated access management, locates the web service providing the data needed to complete an operation. Your policy protects what clients can look up and what they can update.
A Liberty Personal Profile Service, used in federated access management, provides an identity's basic profile information. Your policy protects what clients can query and what they can modify.
A URL Policy Agent protects resources on a specific web site or web application. Your policy protects what URLs client applications can access with HTTP GET and POST operations.
Follow these steps to configure a policy to protect a web site or web application.
In the OpenAM console, select Access Control > Realm
Name > Policies > Policy
Name to display the policy to edit.
In the Rules table, click New... to create a rule, identifying a URL to protect.
Select URL Policy Agent (with resource name), and click Next.
Name the new rule, add the URL to protect in the Resource Name field, and set whether to allow or deny HTTP GET and POST requests to the URL.
Your Resource Name can use wildcards.[5]
A * matches zero or more characters including
/, but
A * at the end of the Resource Name
immediately following / matches one or more
characters including /.
Multiple forward slashes do not match a single forward slash, so
mult/*/dirs matches
mult/iple/dirs, yet mult/*/dirs
does not match mult/dirs.
Trailing forward slashes are not recognized as part of a Resource
Name. Therefore http://www.example.com/images// and
http://www.example.com/images are equivalent.
A -*- matches all characters except forward
slash (/) or question mark (?),
and cannot be escaped. As it does not match /,
-*- does not span multiple levels in a URL.
OpenAM does not let you mix * and
-*- in the same URL.
To check for a match, OpenAM first normalizes both the policy
resource name URL pattern you provide, and also the actual requested
resource URL. In addition to sorting the query string field-value pairs,
OpenAM ensures that both the URL pattern and the resource URL include the
port number. If no port number is specified, OpenAM uses 80 for HTTP or
443 for HTTPS. In other words, http://www.example.com/*
gets normalized to http://www.example.com:80/*. Also,
http://*/* gets normalized to
http://*:80/*. Notice that http://*/*
does matches when the port number is 80, but not when the port number is
something else, such as
http://www.example.com:1080/index.html.
Click Finish.
The new rule is not yet saved until you click the Save button in the Edit Policy screen.
In the Subjects table, click New... to define a subject, identifying the users to whom the policy applies.
In the Select Subject Type screen, make your selection, and then click next.
Authenticated Users refers to users who have authenticated with OpenAM, even if they do not have profiles in the realm where you define the policy.
OpenAM Identity Subject refers to users or groups you can find under Access Control > Realm Name > Subjects.
Web Services Clients are for federated access management.
Name the subject.
If you want to apply the policy to everyone but the subjects you identified, then select Exclusive.
For example
If you selected OpenAM Identity Subject, use the Filter section to find and add to your list the subjects to whom to apply the policy.
Click Finish.
In the Conditions table, click New... to create a condition, constraining the circumstances under which the policy applies.
Select the Condition Type from the list.
Active Session Time lets you make the policy depend on how long the user's session has been active, and even to terminate the session if deemed too old, such that the user must authenticate again.
Authentication by Module Chain lets you make the policy depend on the realm where the user authenticated, and on the authentication chain used to authenticate.
Authentication by Module Instance lets you make the policy depend on the realm where the user authenticated, and on the authentication module used to authenticate, as well as setting timeouts for application authentication.
Authentication Level (greater than or equal to) lets you make the policy depend on the realm where the user authenticated, and on a minimum acceptable authentication level.
Authentication Level (less than or equal to) lets you make the policy depend on the realm where the user authenticated, and on a maximum acceptable authentication level.
Authentication to a Realm lets you make the policy depend on the realm where the user authenticated.
Current Session Properties lets you make the policy depend on attributes set in the user's session.
Identity Membership lets you make the policy depend on a list of OpenAM subjects that you select, and whether the user belongs to the list of users or is a member of a group you selected.
IP Address/DNS Name lets you apply the policy to clients in specific IP address ranges or coming from a particular DNS domain.
LDAP Filter Condition lets you make the policy depend on whether the user's entry can be found using the LDAP search filter you specify in the directory configured for the policy service, which by default is the identity repository. See Configuration > Global > Policy Configuration > Realm Attributes > Primary LDAP Server.
Alternatively you can set this for the realm under Access Control
> Realm Name > Services > Policy
Configuration.
Resource/Environment/IP Address lets you make the policy apply using a complex condition such as whether the user is making a request from the localhost and has authenticated with the LDAP authentication module.
Time (day, date, time, and timezone) lets you make the policy depend on when the policy is evaluated.
Based on the Condition Type you choose, configure the condition, and then click Finish.
In the Response Providers table, click New... to set up a response provider that adds attributes retrieved from the user entry in the identity repository into the headers of the request at policy decision time.
Name the provider.
Add static attributes having the form
.attribute=value
Add dynamic attributes having the form
,
where responseAttr=repoAttrresponseAttr is the attribute name
to be put into the header of the request, and
repoAttr is the attribute name used in the
identity repository.
Click Finish.
Save your work.
OpenAM has to match policies to resources to take policy decisions. For a policy to match, the resource has to match a resources identified in a rule. The user making the request has to match a subject. Furthermore, at least one condition for each condition type has to be satisfied.
If more than one policy matches, OpenAM has to reconcile differences. When multiple policies match, the order in which OpenAM uses them to make a policy decision is not deterministic. However, a deny decision overrides an allow decision, and so by default once OpenAM reaches a deny decision its stops checking further policies. (If you want OpenAM to continue checking despite the deny, see Configuration > Global > Policy Configuration > Continue Evaluation on Deny Decision.)
When you first create policies, the OpenAM console helps you to get started quickly. Yet, when you have many policies to manage you might find it easier to script operations, starting from policies originally created in the console, then exported to XML.
You can export policies created in the console to an XML Policies document.
Use the ssoadm list-policies command.
$ ssoadm list-policies --realm "/" --adminid amadmin --password-file /tmp/pwd.txt Policy definitions were returned under realm, /. <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Policies PUBLIC "-//OpenSSO Policy Administration DTD//EN" "jar://com/sun/identity/policy/policyAdmin.dtd"> <!-- extracted from realm, / --> <Policies> <Policy name="URL Policy" createdby="id=amadmin,ou=user,o=openam" lastmodifiedby="id=amadmin,ou=user,o=openam" creationdate="1312553988059" lastmodifieddate="1315403023466" referralPolicy="false" active="true" > <Rule name="Allow GET with parameters"> <ServiceName name="iPlanetAMWebAgentService" /> <ResourceName name="http://www.example.com/ching/*?*" /> <AttributeValuePair> <Attribute name="GET" /> <Value>allow</Value> </AttributeValuePair> </Rule> <Rule name="Allow GET and POST"> <ServiceName name="iPlanetAMWebAgentService" /> <ResourceName name="http://www.example.com/ching/*" /> <AttributeValuePair> <Attribute name="POST" /> <Value>allow</Value> </AttributeValuePair> <AttributeValuePair> <Attribute name="GET" /> <Value>allow</Value> </AttributeValuePair> </Rule> <Subjects name="Subjects:1312553593870WmIuFvI=" description=""> <Subject name="All Authenticated Users" type="AuthenticatedUsers" includeType="inclusive"> </Subject> </Subjects> </Policy> </Policies>
In a production environment where you manage operations using scripts rather than the console, use exported, file-based policies edited for your needs, and then import the policies using ssoadm.
Create your XML policy file.
$ cat policy.xml <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Policies PUBLIC "-//OpenSSO Policy Administration DTD//EN" "jar://com/sun/identity/policy/policyAdmin.dtd"> <!-- New policy, same as the old policy --> <Policies> <Policy name="New Policy" referralPolicy="false" active="true" > <Rule name="Allow GET with parameters"> <ServiceName name="iPlanetAMWebAgentService" /> <ResourceName name="http://www.example.com/ching/*?*" /> <AttributeValuePair> <Attribute name="GET" /> <Value>allow</Value> </AttributeValuePair> </Rule> <Rule name="Allow GET and POST"> <ServiceName name="iPlanetAMWebAgentService" /> <ResourceName name="http://www.example.com/ching/*" /> <AttributeValuePair> <Attribute name="POST" /> <Value>allow</Value> </AttributeValuePair> <AttributeValuePair> <Attribute name="GET" /> <Value>allow</Value> </AttributeValuePair> </Rule> <Subjects name="Subjects" description="Everybody authenticated"> <Subject name="All Authenticated Users" type="AuthenticatedUsers" includeType="inclusive"> </Subject> </Subjects> </Policy> </Policies>
Use the ssoadm create-policies command.
$ ssoadm create-policies --realm "/" --adminid amadmin --password-file /tmp/pwd.txt --xmlfile policy.xml Policies were created under realm, /.
You use a referral to delegate policy management, and to delegate policy decision making.
Referrals are covered in the chapter on Realms.
[5] This
explanation focuses on how this works for web resources such as
http://www.example.com:80/index.html,
where the delimiter is /, the wildcard is
*, and the one-level wildcard is
-*-. By default, comparisons are not case sensitive.
The delimiter, wildcards and case sensitivity are configurable. To see
examples of other configurations, browse in the OpenAM console to
Configuration > Global > Policy Configuration > Resource
Comparator.
This chapter covers how to define entitlements for fine-grained authorization to access particular resources.
OpenAM entitlements serve much the same purpose as OpenAM policies, defining who has access to what, under what conditions. OpenAM stores and manages policies centrally using the standard eXtensible Access Control Markup Language (XACML). You can access OpenAM entitlements and policy decisions using the RESTful web interface, for even lighter weight policy enforcement than with OpenAM policy agents.
The OpenAM entitlements service uses XACML terminology to refer to the different points dealing with policy.
OpenAM serves as a policy administration point (PAP) where you define, store, and manage policies. OpenAM uses the configuration directory to store entitlements, whereas profiles are stored in the identity repository (user data store).
OpenAM also serves as a policy decision point (PDP), evaluating policies and issuing authorization decisions, and as a policy information point, providing the information needed for authorization decisions.
OpenAM policy agents act as policy enforcement points, obtaining decisions from PDPs to protect access to resources.
Entitlement policies define who has who has access to what, under what conditions, in the same way that other OpenAM policies define policy. Entitlement policies do let you define virtual subjects and subjects based on attribute lookup to determine who has access to the resources.
Entitlements apply for applications, which in this context mean protected resources that share a common set of actions and related policies. For example, the web agent application protects web resources accessed through HTTP GET and POST actions using a web policy agent to enforce decisions to allow or deny access. You can also define more specific applications as demonstrated by the examples delivered with OpenAM.
Delegations grant specific users privileges to manage policies.
To manage entitlements, you can use the ssoadm command. The ssoadm command provides several other subcommands for managing entitlements in addition to those shown here.
Use the ssoadm list-xacml command to export policies.
$ ssoadm list-xacml --realm / --adminid amadmin --password-file /tmp/pwd.txt
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PolicySet PolicyCombiningAlgId="urn:oasis:names:tc:xacml:3.0:
rule-combining-algorithm:deny-overrides" Version="2011.10.07.12.22.04.705"
PolicySetId="/:2011.10.07.12.22.04.704" xmlns="urn:oasis:names:tc:xacml:3.0:
core:schema:cd-1">
<Target/>
... other policies ...
<Policy RuleCombiningAlgId="urn:oasis:names:tc:xacml:3.0:
rule-combining-algorithm:deny-overrides" Version="2011.10.07.11.51.27.444"
PolicyId="New Policy">
... policy content here ...
</Policy>
</PolicySet>Use the ssoadm create-xacml command to import a policy.
$ ssoadm create-xacml --realm / --xmlfile policy.xml --adminid amadmin --password-file /tmp/pwd.txt
Use the ssoadm create-appl command to create an application type.
$ cat application.txt resources=http://myapp.example.com:80/* subjects=com.sun.identity.admin.model.IdRepoUserViewSubject subjects=com.sun.identity.admin.model.VirtualViewSubject subjects=com.sun.identity.admin.model.OrViewSubject subjects=com.sun.identity.admin.model.AndViewSubject conditions=com.sun.identity.admin.model.DateRangeCondition conditions=com.sun.identity.admin.model.DaysOfWeekCondition conditions=com.sun.identity.admin.model.IpRangeViewCondition conditions=com.sun.identity.admin.model.DnsNameViewCondition conditions=com.sun.identity.admin.model.TimeRangeCondition conditions=com.sun.identity.admin.model.TimezoneCondition conditions=com.sun.identity.admin.model.OrViewCondition conditions=com.sun.identity.admin.model.AndViewCondition conditions=com.sun.identity.admin.model.NotViewCondition entitlementCombiner=com.sun.identity.entitlement.DenyOverride $ ssoadm create-appl --realm / --applicationtype iPlanetAMWebAgentService --name myApp --adminid amadmin --password-file /tmp/pwd.txt --datafile application.txt myApp was created.
This chapter shows how to configure OpenAM realms, which are used to group configuration and identities together. For example, you might have one realm for OpenAM administrators and agents, and another realm for users. In this two-realm setup, the OpenAM administrator can login to the administrative realm to manage the services, but cannot authenticate as OpenAM administrator to the realm that protects web sites with HR and financial information.
OpenAM associates a realm with at least one identity repository and authentication process. OpenAM also associates the realm with authorization policies and entitlements for users, and privileges for administrators. Each realm can have its own configuration for services.
When you first configure OpenAM, OpenAM sets up the default
/ (Top Level Realm), containing OpenAM configuration
data, and allowing authentication using the identity repository you choose
during initial configuration. The top level realm might hold the overall
configuration for Example.com for instance.
You create new realms to subdivide authentication, and authorization, and to delegate management of sub-realms. For example, your organization might require separate realms for payroll, human resources, and IT management domains and their applications.
You can create a new realm through the OpenAM console as described below, or by using the ssoadm create-realm command.
Login to the OpenAM console as OpenAM Administrator,
amadmin.
On the Access Control tab > Realms table, click New... to open the New Realm page, where you configure the realm.
If you configure the realm to be inactive, then users cannot use it to authenticate or be granted access to protected resources.
Realm/DNS aliases must be meaningful in DNS terms, such as
hr.example.com or
pay.example.com.
Save your work after defining the configuration for the new realm.
You configure a realm through the console starting from the Access Control tab > Realms table. By default the new realm inherits configuration from the global configuration. The default identity repository is the one you choose when configuring OpenAM after deployment. The default authentication mechanism corresponds to that identity repository as well. You can, however, constrain authentication to rely on different data stores, and set policy for agents to define authorization in the realm.
You can delegate administration in a realm. OpenAM grants administrative capabilities to members of groups having administrative privileges.
You can grant privileges through the OpenAM console as described below, or by using the ssoadm add-privileges command.
On the Access Control tab > Realms table, click the realm for which you want to delegate administration to view the realm configuration.
On the Privileges tab, click the name of the group to whom you intend to grant access.
Select the administrative privileges to delegate for the realm, and then save your work.
When you delegate access management for a realm, you might want to delegate policy management. You can delegate policy management by creating a referral.
In the OpenAM console, browse to Access Control >
Realm Name > Policies, where
Realm Name is the realm from
which you intend to delegate policy.
Click the New Referral... button in the Policies table.
In the New Referral screen, provide at minimum a name for the referral.
Set up rules to identify the resources to which the referral applies.
You specify only a rule Name, and a Resource Name for the resource to manage, so that the realm administrator has access to set up the policy for the specified resource.
Set up referrals to identify the realms to which to delegate policy management.
You can delegate to peer realms or sub realms (child realms), but not to parent realms.
Save your work.
At this point you can let the realm administrator know that she can create policies in her realm for the resources you specified in the rules of the referral.
When you first set up a realm, the new realm inherits the data store from the parent realm. Yet, if your administrators are in one realm and your users in another, your new child realm might retrieve users from a different data store.
In the OpenAM console, browse to Access Control >
Realm Name > Data Store.
Click New... in the Data Stores table to create a data store profile, and to provide the information needed to connect to the data store.
In the first screen, name the data store and select the type of data store to use.
Most data stores are directory services, though the Database Repository lets you connect to an SQL database through JDBC.
In the second screen, provide information on how to connect to your data store, and then click Finish to save your work.
See the chapter on authentication for hints on connecting to Active Directory, LDAP directory, and JDBC data sources.
Click the Subjects tab, and make sure the connection to your new data store is working, by searching for a known identity.
By default the Subjects list only retrieves 100 entries from the data store. Narrow your search if you do not see the identity you are looking for in the list.
If you no longer need the connection to the inherited data store in this realm, then you can delete its entry in the Data Stores table.
Also, once you change the data store for a realm, you might opt to change the authentication module configuration as described in the chapter on authentication to use your realm data store, rather than the inherited settings.
You might choose to configure your agent in one realm, yet have your real users authenticate through another realm. In this case, you want your agents to redirect users to authenticate to their realm, rather than the agent realm.
In the OpenAM console, browse to Access Control >
Realm Name > Agents > Web
or J2EE Agent Type > Agent Name
> OpenAM Services.
Add login and logout URLs, including the realm in the query string.
For example, if your Realm Name is
hr, and you access OpenAM at
http://openam.example.com:8080/openam:
Login URL:
http://openam.example.com:8080/openam/UI/Login?realm=hr
Logout URL:
http://openam.example.com:8080/openam/UI/Logout?realm=hr
Save your work.
You install policy agents in web servers and web application containers to enforce access policies OpenAM applies to protected web sites and web applications. Policy agents depend on OpenAM for all authentication and authorization decisions. Their primary responsibility consists in enforcing what OpenAM decides in a way that is unobtrusive to the user. In organizations with many servers, you might well install many policy agents.
Policy agents can have local configurations where they are installed, but usually you store all policy agent configuration information in the OpenAM configuration store, defining policy agent profiles for each, and then you let the policy agents access their profiles through OpenAM such that you manage all agent configuration changes centrally. This chapter describes how to set up policy agent profiles in OpenAM for centralized configuration.
OpenAM includes both the Identity Gateway and also a variety of policy agents. Both the Identity Gateway and also the policy agents enforce policy, redirecting users to authenticate when necessary, and controlling access to protected resources. Yet, the Identity Gateway runs as a self-contained reverse proxy located between the users and the protected applications. Policy agents are installed into the servers where applications run, intercepting requests in that context.
The Identity Gateway works well with applications where you want to protect access, but you cannot install a policy agent. For example, you might have a web application running in a server for which no policy agent has been developed. Or you might be protecting an application where you simply cannot install a policy agent.
Policy agents have the advantage, where you can install them, of sitting within your existing server infrastructure. Once you have agents installed into the servers with web applications or sites to protect, then you can manage their configurations centrally from OpenAM.
Of course, for organizations with both servers where you can install policy agents and also applications that you must protect without touching the server, you can use policy agents on the former and the Identity Gateway for the latter.
When you open the OpenAM console to configure agents for the top level realm, you see a number of different kinds to choose. Web and J2EE policy agents are the most common, requiring the least integration effort.
You install web agents in web servers to protect web sites.
You install J2EE agents in web application containers to protect web applications.
WSP agents are for use with Web Services Security.
WSC agents are for use with Web Services Security.
The Discovery Service agent has the trust authority configuration that OpenAM uses to communicate with a Liberty Discovery Service.
The Security Token Service client agent is for securing requests to the Security Token Service.
Version 2.2 web and J2EE policy agents hold their configuration locally, connecting to OpenAM with a user name, password combination. This kind of agent is provided for backwards compatibility.
OAuth 2.0 clients are registered using this type of policy agent profile.
The agent authenticator can read agent profiles by connecting to OpenAM with a user name, password combination, but unlike the agent profile administrator, cannot change agent configuration.
This section concerns creating agent profiles, and creating groups that let agents inherit settings when you have many agents with nearly the same profile settings.
To create a new web or J2EE policy agent profile, you need a name and password for the agent, and the URLs to OpenAM and the application to protect.
On the Access Control tab page of the OpenAM console, click the link for the realm in which you manage agents.
Click the Agents tab, click the tab page for the kind of agent you want to create, and then click the New... button in the Agent table.
Provide a name for the agent, and also the URLs to OpenAM and to the application to protect, then click Create.
After creating the agent profile, you can click the link to the new profile to adjust and export the configuration.
Agent profile groups let you set up multiple agents to inherit settings from the group. To create a new web or J2EE agent profile group, you need a name and the URL to the OpenAM server in which you store the profile.
On the Access Control tab page of the OpenAM console, click the link for the realm in which you manage agents.
Click the Agents tab, click the tab page for the kind of agent you want to create, and then click the New... button in the Group table.
After creating the group profile, you can click the link to the new group profile to fine-tune or export the configuration.
Inherit group settings by selecting your agent profile, and then selecting the group name in the Group drop-down list near the top of the profile page.
You can then adjust inheritance by clicking Inheritance Settings on the agent profile page.
If you want to create policy agent profiles when installing policy agents, then you need the credentials of an OpenAM user who can read and write agent profiles.
You can use the OpenAM administrator account when creating policy agent profiles. If however you delegate policy agent installation, then you might not want to share OpenAM administrator credentials with everyone who installs policy agents.
Follow these steps to create agent administrator users for a realm.
In OpenAM console, browse to Access Control > Realm
Name > Subjects.
Under Group click New... and create a group for agent administrators.
Switch to the Privileges tab for the realm, and click the name of the group you created.
Select "Read and write access to all configured Agents," and then Save your work.
Return to the Subjects tab, and under User create as many agent administrator users as needed.
For each agent administrator user, edit the user profile.
Under the Group tab of the user profile, add the user to agent profile administrator group, and then Save your work.
Provide each system administrator who installs policy agents with their agent administrator credentials.
When installing the policy agent with the
--custom-install option, the system administrator can
choose the option to create the profile during installation, and then
provide the agent administrator user name and the path to a read-only
file containing the agent administrator password.
When you create a web policy agent profile and install the agent, you can choose to store the agent configuration centrally and configure the agent through OpenAM console. Alternatively, you can choose to store the agent configuration locally and configure the agent by changing values in the properties file. This section covers centralized configuration, indicating the corresponding properties for use in a local configuration file where applicable.[6]
To show the agent properties in configuration file format that correspond to what you see in the console, click Export Configuration after editing agent properties.
This corresponds to the local Java properties configuration file
that is set up when you install an agent, for example in
Agent_001/config/OpenSSOAgentConfiguration.properties.
After changing properties specified as "Hot swap: no" you must restart the agent for the changes to take effect.
This section covers global web agent properties. After creating the
agent profile, you access these properties in the OpenAM console under
Access Control > Realm Name > Agents >
Web > Agent Name > Global.
For assigning the agent to a previously configured web agent group in order to inherit selected properties from the group.
Agent password used when creating the password file and when installing the agent.
Status of the agent configuration.
Indicates agent's configuration located either on agent's host or centrally on OpenAM server.
If you change this to a local configuration, you can no longer manage the policy agent configuration through OpenAM console.
Property: com.sun.identity.agents.config.repository.location
Enable agent to receive notification messages from OpenAM server for configuration changes.
Property: com.sun.identity.agents.config.change.notification.enable
If enabled, the agent receives policy updates from the OpenAM notification mechanism to maintain its internal cache. If disabled, the agent must poll OpenAM for changes.
Property: com.sun.identity.agents.config.notification.enable
Hot swap: no
URL used by agent to register notification listeners.
Property: com.sun.identity.client.notification.url
Hot swap: no
The default value is
.agent-root-URL/amagent
Property: com.sun.identity.agents.config.agenturi.prefix
Hot swap: yes
Interval in minutes to fetch agent configuration from OpenAM. Used if notifications are disabled. Default: 60.
Property: com.sun.identity.agents.config.polling.interval
Hot swap: no
Interval in minutes to cleanup old agent configuration entries unless they are referenced by current requests. Default: 30.
Property: com.sun.identity.agents.config.cleanup.interval
Hot swap: no
The agent root URL for CDSSO. The valid value is in the format
where protocol://hostname:port/protocol represents the protocol used,
such as http or https,
hostname represents the host name of the
system where the agent resides, and port
represents the port number on which the agent is installed.
The slash following the port number is required.
If your agent system also has virtual host names, add URLs with
the virtual host names to this list as well. OpenAM checks that
goto URLs match one of the agent root URLs for
CDSSO.
When enabled, agent only enforces authentication (SSO), but no policies for authorization.
Property: com.sun.identity.agents.config.sso.only
The URL of the customized access denied page. If no value is specified (default), then the agent returns an HTTP status of 403 (Forbidden).
Property: com.sun.identity.agents.config.access.denied.url
Default is Error. Increase to
Message or even All for
fine-grained detail.
Property: com.sun.identity.agents.config.debug.level
You can set the level in the configuration file by module using
the format
,
where module[:level][,module[:level]]*module is one of
AuthService, NamingService,
PolicyService, SessionService,
PolicyEngine, ServiceEngine,
Notification, PolicyAgent,
RemoteLog, or all,
and level is one of the following.
0: Disable logging from specified module
At this level the agent nevertheless logs messages having the
level value always.
1: Log error messages
2: Log warning and error messages
3: Log info, warning, and error messages
4: Log debug, info, warning, and error messages
5: Like level 4, but with even more debugging messages
When you omit level, the agent uses the
default level, which is the level associated with the
all module.
The following example used in the local configuration sets the log overall level to debug for all messages.
com.sun.identity.agents.config.debug.level=all:4
When enabled, rotate the debug file when specified file size is reached.
Property: com.sun.identity.agents.config.debug.file.rotate
Debug file size in bytes beyond which the log file is rotated. The minimum is 1048576 bytes (1 MB), and lower values are reset to 1 MB. OpenAM console sets a default of 10 MB.
Property: com.sun.identity.agents.config.debug.file.size
Types of messages to log based on user URL access attempts.
Property: com.sun.identity.agents.config.audit.accesstype
Valid values for the configuration file property include
LOG_NONE, LOG_ALLOW,
LOG_DENY, and LOG_BOTH.
Specifies where audit messages are logged. By default, audit messages are logged remotely.
Property: com.sun.identity.agents.config.log.disposition
Valid values for the configuration file property include
REMOTE, LOCAL, and
ALL.
Name of file stored on OpenAM server that contains agent audit messages if log location is remote or all.
Property: com.sun.identity.agents.config.remote.logfile
Hot swap: no
Periodic interval in minutes in which audit log messages are sent to the remote log file.
Property: com.sun.identity.agents.config.remote.log.interval
Default: 5
Hot swap: no
When enabled, audit log files are rotated when reaching the specified size.
Property: com.sun.identity.agents.config.local.log.rotate
Beyond this size limit in bytes the agent rotates the local audit log file if rotation is enabled.
Property: com.sun.identity.agents.config.local.log.size
Default: 50 MB
Enables checking of FQDN default value and FQDN map values.
Property: com.sun.identity.agents.config.fqdn.check.enable
Fully qualified domain name that the users should use in order to access resources. Without this value, the web server can fail to start, thus you set the property on agent installation, and only change it when absolutely necessary.
This property ensures that when users access protected resources on the web server without specifying the FQDN, the agent can redirect the users to URLs containing the correct FQDN.
Property: com.sun.identity.agents.config.fqdn.default
Enables virtual hosts, partial hostname and IP address to access protected resources. Maps invalid or virtual name keys to valid FQDN values so the agent can properly redirect users and the agents receive cookies belonging to the domain.
To map myserver to
myserver.mydomain.example, enter
myserver in the Map Key field, and enter
myserver.mydomain.example in the Corresponding Map Value
field. This corresponds to
com.sun.identity.agents.config.fqdn.mapping[myserver]= myserver.mydomain.example.
Invalid FQDN values can cause the web server to become unusable or render resources inaccessible.
Property: com.sun.identity.agents.config.fqdn.mapping
This section covers application web agent properties. After creating
the agent profile, you access these properties in the OpenAM console under
Access Control > Realm Name > Agents >
Web > Agent Name > Application.
When enabled, the path info and query are stripped from the
request URL before being compared with the URLs of the not enforced list
for those URLs containing a wildcard character. This prevents a user
from accessing http://host/index.html by requesting
http://host/index.html/hack.gif when the not enforced
list includes http://host/*.gif.
This setting is not supported by the Varnish Cache agent.
For a more generally applicable setting, see Ignore Path Info properties.
Property: com.sun.identity.agents.config.ignore.path.info.for.not.enforced.list
Enable use of Perl-compatible regular expressions in Not Enforced URL settings by using the following property under Advanced > Custom Properties in the agent profile.
com.forgerock.agents.notenforced.url.regex.enable=true
List of URLs for which no authentication is required. You can use wildcards to define a pattern for a URL.
The * wildcard matches all characters except
question mark (?), cannot be escaped, and spans
multiple levels in a URL. Multiple forward slashes do not match a
single forward slash, so * matches
mult/iple/dirs, yet mult/*/dirs
does not match mult/dirs.
The -*- wildcard matches all characters except
forward slash (/) or question mark
(?), and cannot be escaped. As it does not match
/, -*- does not span multiple
levels in a URL.
OpenAM does not let you mix * and
-*- in the same URL.
Examples include
http://www.example.com/logout.html,
http://www.example.com/images/*,
http://www.example.com/css/-*-, and
http://www.example.com/*.jsp?locale=*.
Trailing forward slashes are not recognized as part of a resource
name. Therefore http://www.example.com/images// and
http://www.example.com/images are equivalent.
Property: com.sun.identity.agents.config.notenforced.url
If you enabled use of Perl-compatible regular expressions to match Not Enforced URLs, then all your settings must be done using regular expressions. (Do not mix settings; use either the mechanism described above or Perl-compatible regular expressions, but not both.)
The following example shows settings where no authentication is
required for URLs whose path ends /publicA or
/publicB (with or without query string parameters),
and no authentication is required to access .png, .jpg, .gif, .js, or .css
files under URLs that do not contain /protectedA/
or /protectedB/.
.*/(PublicServletA|PublicServletB)(\?.*|$) ^(?!.*(/protectedA/|/protectedB/)).*\.(png|jpg|gif|js|css)(\?.*|$)
Only enforce not enforced list of URLs. In other words, enforce policy only for those URLs and patterns specified in the list.
Property: com.sun.identity.agents.config.notenforced.url.invert
When enabled, the agent fetches profile, response, and session attributes that are mapped by doing policy evaluation, and forwards these attributes to not enforced URLs.
Property: com.sun.identity.agents.config.notenforced.url.attributes.enable
No authentication and authorization are required for the requests coming from these client IP addresses.
Property: com.sun.identity.agents.config.notenforced.ip
As of version 3.0.4, web policy agents with this property set to
cidr can use IPv4 netmasks and IP ranges instead of
wildcards as values for Not Enforced Client IP addresses. Version 3.0.5
adds support for IPv6, including the IPv6 loopback address,
::1.
When the parameter is defined, wildcards are ignored in Not Enforced Client IP settings. Instead, you can use settings such as those shown in the following examples.
To disable policy agent enforcement for addresses in 192.168.1.1 to 192.168.1.255, use the following setting.
com.sun.identity.agents.config.notenforced.ip = 192.168.1.1/24
The following example shows a configuration using IPv6.
com.sun.identity.agents.config.notenforced.ip = 2001:5c0:9168:0:0:0:0:2/128
Currently the policy agent stops evaluating properties after reaching an invalid netmask in the list.
To disable policy agent enforcement for addresses between 192.168.1.1 to 192.168.4.3 inclusive, use the following setting.
com.sun.identity.agents.config.notenforced.ip = 192.168.1.1-192.168.4.3
The following example shows a configuration using IPv6.
com.sun.identity.agents.config.notenforced.ip = 2001:5c0:9168:0:0:0:0:1-2001:5c0:9168:0:0:0:0:2
Property: com.forgerock.agents.config.notenforced.ip.handler
Hot swap: no
When enabled, validate that the subsequent browser requests come from the same IP address that the SSO token is initially issued against.
Property: com.sun.identity.agents.config.client.ip.validation.enable
When set to HTTP_COOKIE or
HTTP_HEADER, profile attributes are introduced into
the cookie or the headers, respectively.
Property: com.sun.identity.agents.config.profile.attribute.fetch.mode
Maps the profile attributes to HTTP headers for the currently authenticated user. Map Keys are LDAP attribute names, and Map Values are HTTP header names.
To populate the value of profile attribute CN under
CUSTOM-Common-Name: enter CN in the Map Key field,
and enter CUSTOM-Common-Name in the Corresponding
Map Value field. This corresponds to
com.sun.identity.agents.config.profile.attribute.mapping[cn]=CUSTOM-Common-Name.
In most cases, in a destination application where an HTTP header
name shows up as a request header, it is prefixed by
HTTP_, lower case letters become upper case, and
hyphens (-) become underscores (_).
For example, common-name becomes
HTTP_COMMON_NAME.
Property: com.sun.identity.agents.config.profile.attribute.mapping
When set to HTTP_COOKIE or
HTTP_HEADER, response attributes are introduced into
the cookie or the headers, respectively.
Property: com.sun.identity.agents.config.response.attribute.fetch.mode
Maps the policy response attributes to HTTP headers for the currently authenticated user. The response attribute is the attribute in the policy response to be fetched.
To populate the value of response attribute uid
under CUSTOM-User-Name: enter uid
in the Map Key field, and enter CUSTOM-User-Name in
the Corresponding Map Value field. This corresponds to
com.sun.identity.agents.config.response.attribute.mapping[uid]=Custom-User-Name.
In most cases, in a destination application where an HTTP header
name shows up as a request header, it is prefixed by
HTTP_, lower case letters become upper case, and
hyphens (-) become underscores (_).
For example, response-attr-one becomes
HTTP_RESPONSE_ATTR_ONE.
Property: com.sun.identity.agents.config.response.attribute.mapping
When set to HTTP_COOKIE or
HTTP_HEADER, session attributes are introduced into the
cookie or the headers, respectively.
Property: com.sun.identity.agents.config.session.attribute.fetch.mode
Maps session attributes to HTTP headers for the currently authenticated user. The session attribute is the attribute in the session to be fetched.
To populate the value of session attribute
UserToken under CUSTOM-userid:
enter UserToken in the Map Key field, and enter
CUSTOM-userid in
the Corresponding Map Value field. This corresponds to
com.sun.identity.agents.config.session.attribute.mapping[UserToken] =CUSTOM-userid.
In most cases, in a destination application where an HTTP header
name shows up as a request header, it is prefixed by
HTTP_, lower case letters become upper case, and
hyphens (-) become underscores (_).
For example, success-url becomes
HTTP_SUCCESS_URL.
Property: com.sun.identity.agents.config.session.attribute.mapping
This section covers SSO web agent properties. After creating the
agent profile, you access these properties in the OpenAM console under
Access Control > Realm Name > Agents >
Web > Agent Name > SSO
Name of the SSO Token cookie used between the OpenAM server and
the agent. Default: iPlanetDirectoryPro.
Property: com.sun.identity.agents.config.cookie.name
Hot swap: no
When enabled, the agent marks cookies secure, sending them only if the communication channel is secure.
Property: com.sun.identity.agents.config.cookie.secure
Hot swap: no
As of version 3.0.5, web policy agents with this property set to
true mark cookies as HTTPOnly, to prevent scripts
and third-party programs from accessing the cookies.
Property: com.sun.identity.cookie.httponly
Enables Cross Domain Single Sign On.
Property: com.sun.identity.agents.config.cdsso.enable
List of URLs of the available CDSSO controllers that the agent can
use for CDSSO processing. For example,
http://openam.example.com:8080/openam/cdcservelet.
Property: com.sun.identity.agents.config.cdsso.cdcservlet.url
List of domains, such as .example.com, in which
cookies have to be set in CDSSO. If this property is left blank, then
the fully qualified domain name of the cookie for the agent server
is used to set the cookie domain, meaning that a host cookie rather than
a domain cookie is set.
To set the list to .example.com, and
.example.net using the configuration file property,
include the following.
com.sun.identity.agents.config.cdsso.cookie.domain[0]=.example.com com.sun.identity.agents.config.cdsso.cookie.domain[1]=.example.net
Property: com.sun.identity.agents.config.cdsso.cookie.domain
When enabled, agent resets cookies in the response before redirecting to authentication.
Property: com.sun.identity.agents.config.cookie.reset.enable
List of cookies in the format
.name[=value][;Domain=value]
Concrete examples include the following with two list items configured.
LtpaToken, corresponding to
com.sun.identity.agents.config.cookie.reset[0]=LtpaToken.
The default domain is taken from FQDN Default.
token=value;Domain=subdomain.domain.com,
corresponding to
com.sun.identity.agents.config.cookie.reset[1]= token=value;Domain=subdomain.domain.com
Property: com.sun.identity.agents.config.cookie.reset
This section covers OpenAM services web agent properties. After
creating the agent profile, you access these properties in the OpenAM console
under Access Control > Realm Name >
Agents > Web > Agent Name > OpenAM
Services.
OpenAM login page URL, such as
http://openam.example.com:8080/openam/UI/Login, to
which the agent redirects incoming users without sufficient credentials
so then can authenticate.
Property: com.sun.identity.agents.config.login.url
To conditionally redirect users based on the incoming request URL, set this property.
This takes the incoming request URL to match, a vertical bar
( | ), and then a comma-separated list of URLs to
which to redirect incoming users.
If the string before the vertical bar matches an incoming request
URL, then the policy agent uses the list of URLs to determine how to
redirect the user-agent. If the global property FQDN Check
(com.sun.identity.agents.config.fqdn.check.enable)
is enabled for the policy agent, then the policy agent iterates through
the list until it finds an appropriate redirect URL that matches the
FQDN check. Otherwise, the policy agent redirects the user-agent to the
first URL in the list.
Property: com.forgerock.agents.conditional.login.url
Examples: com.forgerock.agents.conditional.login.url[0]=
login.example.com/|http://openam1.example.com/openam/UI/Login,
http://openam2.example.com/openam/UI/Login,
com.forgerock.agents.conditional.login.url[1]=
login.example.com|http://openam3.example.com/openam/UI/Login,
http://openam4.example.com/openam/UI/Login
Timeout period in seconds for an agent connection with OpenAM auth server.
Property: com.sun.identity.agents.config.auth.connection.timeout
Default: 2
Interval in minutes, agent polls to check the primary server is up and running. Default: 5.
Property: com.sun.identity.agents.config.poll.primary.server
Hot swap: no
OpenAM logout page URL, such as
http://openam.example.com:8080/openam/UI/Logout.
Property: com.sun.identity.agents.config.logout.url
Logout URL redirect is enabled by default.
When this is disabled, instead of redirecting the user-agent, the policy agent performs session logout in the background and then continues processing access to the current URL. Disable this using Advanced > Custom Properties in the agent profile.
com.forgerock.agents.config.logout.redirect.disable=true
List of application logout URLs, such as
http://www.example.com/logout.html.
The user is logged out of the OpenAM session when these URLs are accessed.
When using this property, specify a value for the Logout Redirect URL
property.
Property: com.sun.identity.agents.config.agent.logout.url
Perl-compatible regular expression that matches logout URLs. Set this using Advanced > Custom Properties in the agent profile.
For example, to match URLs with protectedA or
protectedB in the path and op=logout
in the query string, use the following setting.
com.forgerock.agents.agent.logout.url.regex= \ .*(/protectedA\?|/protectedB\?/).*(\&op=logout\&)(.*|$)
When you use this property, the agent ignores the settings for Logout URL List.
Cookies to be reset upon logout in the same format as the cookie reset list.
Property: com.sun.identity.agents.config.logout.cookie.reset
User gets redirected to this URL after logout. Specify this property alongside a Logout URL List.
Property: com.sun.identity.agents.config.logout.redirect.url
Polling interval in minutes during which an entry remains valid after being added to the agent's cache.
Property: com.sun.identity.agents.config.policy.cache.polling.interval
Hot swap: no
Polling interval in minutes during which an SSO entry remains valid after being added to the agent's cache.
Property: com.sun.identity.agents.config.sso.cache.polling.interval
Hot swap: no
Agent sets this value for User Id passed in the session from OpenAM to the REMOTE_USER server variable. Default: UserToken.
Property: com.sun.identity.agents.config.userid.param
User ID can be fetched from either SESSION and LDAP attributes.
Default: SESSION.
Property: com.sun.identity.agents.config.userid.param.type
When enabled, the agent caches the policy decision of the
resource and all resources from the root of the resource down. For
example, if the resource is http://host/a/b/c, then
the root of the resource is http://host/. This setting
can be useful when a client is expect to access multiple resources on the
same path. Yet, caching can be expensive if very many policies are
defined for the root resource.
Property: com.sun.identity.agents.config.fetch.from.root.resource
Hot swap: no
When enabled, get the client hostname through DNS reverse lookup for use in policy evaluation. This setting can impact performance.
Property: com.sun.identity.agents.config.get.client.host.name
Time in seconds used adjust time difference between agent system and OpenAM. Clock skew in seconds = AgentTime - OpenAMServerTime.
Use this property to adjust for small time differences encountered despite use of a time synchronization service. When this property is not set and agent time is greater than OpenAM server time, the agent can make policy calls to the OpenAM server before the policy subject cache has expired, or you can see infinite redirection occur.
Property: com.sun.identity.agents.config.policy.clock.skew
Hot swap: no
This section covers miscellaneous web agent properties. After creating
the agent profile, you access these properties in the OpenAM console under
Access Control > Realm Name > Agents >
Web > Agent Name > Miscellaneous.
As of version 3.0.4, when set to true, the agent
sends composite advice in the query (GET request) instead of sending it
through a POST request.
Property: com.sun.am.use_redirect_for_advice
The default locale for the agent.
Property: com.sun.identity.agents.config.locale
Hot swap: no
Enable or disable REMOTE_USER processing for anonymous users.
Property: com.sun.identity.agents.config.anonymous.user.enable
When enabled, encode special chars in cookie by URL encoding.
This is useful when profile, session, and response attributes contain
special characters, and the attributes fetch mode is set to
HTTP_COOKIE.
Property: com.sun.identity.agents.config.encode.cookie.special.chars.enable
Sets cookie prefix in the attributes headers. Default:
HTTP_.
Property: com.sun.identity.agents.config.profile.attribute.cookie.prefix
Maximum age in seconds of custom cookie headers. Default: 300.
Property: com.sun.identity.agents.config.profile.attribute.cookie.maxage
When enabled, enforces case insensitivity in both policy and not enforced URL evaluation.
Property: com.sun.identity.agents.config.url.comparison.case.ignore
When enabled, encodes the URL which has special characters before doing policy evaluation.
Property: com.sun.identity.agents.config.encode.url.special.chars.enable
When enabled, do not send a preferred naming URL in the naming request.
Property: com.sun.identity.agents.config.ignore.preferred.naming.url
Use a Perl-compatible regular expression to filter out invalid request URLs. The policy agent reject requests to invalid URLs with HTTP 403 Forbidden status without further processing. Use Advanced > Custom Properties to set this in the agent profile.
For example, to filter out URLs containing the symbols in the list ./, /., /, ., ,\, %00-%1f, %7f-%ff, %25, %2B, %2C, %7E, .info, use the following setting.
com.forgerock.agents.agent.invalid.url.regex= \ ^((?!(|/\.|\./||*|\.info|%25|%2B|%2C|%[0-1][0-9a-fA-F]|%[7-9a-fA-F][0-9a-fA-F])).)$
When enabled, do not check whether OpenAM is up before doing a 302 redirect.
Property: com.sun.identity.agents.config.ignore.server.check
When enabled, strip path info from the request URL while doing the Not Enforced List check, and URL policy evaluation. This is designed to prevent a user from accessing a URI by appending the matching pattern in the policy or not enforced list.
This setting is not supported by the Varnish Cache agent.
For example, if the not enforced list includes
http://host/*.gif, then stripping path info from the
request URI prevents access to http://host/index.html
by using http://host/index.html?hack.gif.
However, when a web server is configured as a reverse proxy for a J2EE application server, the path info is interpreted to map a resource on the proxy server rather than the application server. This prevents the not enforced list or the policy from being applied to the part of the URI below the application server path if a wildcard character is used.
For example, if the not enforced list includes
http://host/webapp/servcontext/* and the request URL is
http://host/webapp/servcontext/example.jsp, the path
info is /servcontext/example.jsp and the resulting
request URL with path info stripped is
http://host/webapp/, which does not match the
not enforced list. Thus when this property is enabled, path info is
not stripped from teh request URL even if there is a wildcard in the not
enforced list or policy.
Make sure therefore when this property is enabled that there is nothing following the wildcard in the not enforced list or policy.
Property: com.sun.identity.agents.config.ignore.path.info
When enabled, the agent encodes the LDAP header values in the default encoding of operating system locale. When disabled, the agent uses UTF-8.
Property: com.sun.identity.agents.config.convert.mbyte.enable
Property used only when CDSSO is enabled. Only change the default
value, goto when the login URL has a landing page
specified such as,
com.sun.identity.agents.config.cdsso.cdcservlet.url
= http://openam.example.com:8080/openam/cdcservlet?goto=
http://www.example.com/landing.jsp.
The agent uses this parameter to append the original request URL
to this cdcservlet URL. The landing page consumes this parameter to
redirect to the original URL.
As an example, if you set this value to goto2,
then the complete URL sent for authentication is
http://openam.example.com:8080/openam/cdcservlet?goto=
http://www.example.com/landing.jsp?goto2=http://www.example.com/original.jsp.
Property: com.sun.identity.agents.config.redirect.param
This section covers advanced web agent properties. After creating the
agent profile, you access these properties in the OpenAM console under
Access Control > Realm Name > Agents >
Web > Agent Name > Advanced.
If the agent is behind a proxy or load balancer, then the agent can get client IP and host name values from the proxy or load balancer. For proxies and load balancer that support providing the client IP and host name in HTTP headers, you can use the following properties.
When multiple proxies are load balancers sit in the request path,
the header values can include a comma-separated list of values with the
first value representing the client, as in
client,next-proxy,first-proxy.
HTTP header name that holds the IP address of the client.
Property: com.sun.identity.agents.config.client.ip.header
HTTP header name that holds the hostname of the client.
Property: com.sun.identity.agents.config.client.hostname.header
Enable if a load balancer is used for OpenAM services.
Property: com.sun.identity.agents.config.load.balancer.enable
Hot swap: no
Enable if the agent is sitting behind a SSL/TLS off-loader,
load balancer, or proxy such that the protocol users use is different
from the protocol the agent uses. When enabled, the protocol is overridden
with the value from the Agent Deployment URI Prefix (property:
com.sun.identity.agents.config.agenturi.prefix).
Property: com.sun.identity.agents.config.override.protocol
Enable if the agent is sitting behind a SSL/TLS off-loader,
load balancer, or proxy such that the host name users use is different
from the host name the agent uses. When enabled, the host is overridden
with the value from the Agent Deployment URI Prefix (property:
com.sun.identity.agents.config.agenturi.prefix).
Property: com.sun.identity.agents.config.override.host
Enable if the agent is sitting behind a SSL/TLS off-loader,
load balancer, or proxy such that the port users use is different
from the port the agent uses. When enabled, the port is overridden
with the value from the Agent Deployment URI Prefix (property:
com.sun.identity.agents.config.agenturi.prefix).
Property: com.sun.identity.agents.config.override.port
Enable if the agent is sitting behind a SSL/TLS off-loader,
load balancer, or proxy such that the URL users use is different
from the URL the agent uses. When enabled, the URL is overridden
with the value from the Agent Deployment URI Prefix (property:
com.sun.identity.agents.config.agenturi.prefix).
Property: com.sun.identity.agents.config.override.notification.url
Enables HTTP POST data preservation. This feature is available in the Apache 2.2, Microsoft IIS 6, Microsoft IIS 7, and Sun Java System Web Server web policy agents as of version 3.0.3.
Property: com.sun.identity.agents.config.postdata.preserve.enable
POST cache entry lifetime in minutes. Default: 10.
Property: com.sun.identity.agents.config.postcache.entry.lifetime
When HTTP POST data preservation is enabled, override properties are set to true, and the agent is behind a load balancer, then this property sets the name and value of the sticky cookie to use.
Property: com.sun.identity.agents.config.postdata.preserve.lbcookie
If you run multiple web servers with policy agents behind a load balancer that directs traffic based on the request URI, and you need to preserve POST data, then set this property.
By default, policy agents use a dummy URL for POST data preservation,
http://,
to handle POST data across redirects to and from OpenAM. When you set this
property, the policy agent prefixes the property value to the dummy URL
path. In other words, when you set
agent.host:port/dummypost/sunpostpreservecom.forgerock.agents.config.pdpuri.prefix = app1,
the policy agent uses the dummy URL,
http://.agent.host:port/app1/dummypost/sunpostpreserve
Next, use the prefix you set when you define load balancer URI rules. This ensures that clients end up being redirected to the policy agent that preserved the POST data.
Property: com.forgerock.agents.config.pdpuri.prefix
When enabled ignore the host and port settings.
Property: com.sun.identity.agents.config.proxy.override.host.port
Hot swap: no
The agent should normally perform authentication, so this is not
required. If necessary, set to none.
Property: com.sun.identity.agents.config.iis.auth.type
Hot swap: no
DES key for decrypting the basic authentication password in the session.
Property: com.sun.identity.agents.config.replaypasswd.key
The loading priority of filter, DEFAULT, HIGH, LOW, or MEDIUM.
Property: com.sun.identity.agents.config.iis.filter.priority
Enable if the IIS agent filter is configured for OWA.
Property: com.sun.identity.agents.config.iis.owa.enable
Enable to avoid IE6 security pop-ups.
Property: com.sun.identity.agents.config.iis.owa.enable.change.protocol
URL of the local idle session timeout page.
Property: com.sun.identity.agents.config.iis.owa.enable.session.timeout.url
When enabled, the agent checks whether the user exists in the Domino name database.
Property: com.sun.identity.agents.config.domino.check.name.database
Enable if the agent needs to use LTPA Token.
Property: com.sun.identity.agents.config.domino.ltpa.enable
The name of the cookie that contains the LTPA token.
Property: com.sun.identity.agents.config.domino.ltpa.cookie.name
The configuration name that the agent uses in order to employ the LTPA token mechanism.
Property: com.sun.identity.agents.config.domino.ltpa.config.name
The organization name to which the LTPA token belongs.
Property: com.sun.identity.agents.config.domino.ltpa.org.name
Additional properties to augment the set of properties supported by agent. Such properties take the following forms.
customproperty=custom-value1
customlist[0]=customlist-value-0
customlist[1]=customlist-value-1
custommap[key1]=custommap-value-1
custommap[key2]=custommap-value-2
Property: com.sun.identity.agents.config.freeformproperties
When you create a J2EE policy agent profile and install the agent, you can choose to store the agent configuration centrally and configure the agent through OpenAM console. Alternatively, you can choose to store the agent configuration locally and configure the agent by changing values in the properties file. This section covers centralized configuration, indicating the corresponding properties for use in a local configuration file where applicable.[7]
To show the agent properties in configuration file format that correspond to what you see in the console, click Export Configuration after editing agent properties.
After changing properties specified as "Hot swap: no" you must restart the agent.
This section covers global web agent properties. After creating the
agent profile, you access these properties in the OpenAM console under
Access Control > Realm Name > Agents >
J2EE > Agent Name > Global.
For assigning the agent to a previously configured web agent group in order to inherit selected properties from the group.
Agent password used when creating the password file and when installing the agent.
Status of the agent configuration.
URL used by agent to register notification listeners.
Property: com.sun.identity.client.notification.url
Hot swap: no
Indicates agent's configuration located either on agent's host or centrally on OpenAM server.
If you change this to a local configuration, you can no longer manage the policy agent configuration through OpenAM console.
Property: com.sun.identity.agents.config.repository.location
Interval in seconds to fetch agent configuration from OpenAM. Used if notifications are disabled. Default: 0
Property: com.sun.identity.agents.config.load.interval
Enable agent to receive notification messages from OpenAM server for configuration changes.
Property: com.sun.identity.agents.config.change.notification.enable
The agent root URL for CDSSO. The valid value is in the format
where protocol://hostname:port/protocol represents the protocol used,
such as http or https,
hostname represents the host name of the
system where the agent resides, and port
represents the port number on which the agent is installed.
The slash following the port number is required.
If your agent system also has virtual host names, add URLs with
the virtual host names to this list as well. OpenAM checks that
goto URLs match one of the agent root URLs for
CDSSO.
Specifies how the agent filters requests to protected web applications. The global value functions as a default, and applies for protected applications that do not have their own filter settings. Valid settings include the following.
ALLEnforce both the J2EE policy defined for the web container where the protected application runs, and also OpenAM policies.
When setting the filter mode to ALL, set the
Map Key, but do not set any Corresponding Map Value.
J2EE_POLICYEnforce only the J2EE policy defined for the web container where the protected application runs.
NONEDo not enforce policies to protect resources. In other words, turn off access management. Not for use in production.
SSO_ONLYEnforce only authentication, not policies.
URL_POLICYEnforce only OpenAM, URL resource based policies.
When setting the filter mode to URL_POLICY,
set the Map Key to the application name and the Corresponding Map
Value to URL_POLICY.
Property: com.sun.identity.agents.config.filter.mode
Hot swap: no
When enabled the agent invalidates the HTTP session upon login failure, when the user has no SSO session, or when the principal user name does not match the SSO user name.
Property: com.sun.identity.agents.config.httpsession.binding
When set to a value other than zero, this defines the maximum number of failed login attempts allowed during a single browser session, after which the agent blocks requests from the user.
Property: com.sun.identity.agents.config.login.attempt.limit
Specifies the custom headers the agent sets for the client. The key is the header name. The value is the header value.
Property: com.sun.identity.agents.config.response.header
For example,
com.sun.identity.agents.config.response.header[Cache-Control]=no-cache.
When set to a value other than zero, this defines the maximum number of redirects allowed for a single browser session, after which the agent blocks the request.
Property: com.sun.identity.agents.config.redirect.attempt.limit
Default is Error. Increase to
Message or even All for
fine-grained detail.
Property: com.iplanet.services.debug.level
Specifies the mechanism used to determine the user ID.
Property: com.sun.identity.agents.config.user.mapping.mode
Specifies the data store attribute that contains the user ID.
Property: com.sun.identity.agents.config.user.attribute.name
When enabled, OpenAM uses both the principal user name and also the user ID for authentication.
Property: com.sun.identity.agents.config.user.principal
Specifies the session property name for the authenticated user's
ID. Default: UserToken.
Property: com.sun.identity.agents.config.user.token
Types of messages to log based on user URL access attempts.
Property: com.sun.identity.agents.config.audit.accesstype
Valid values for the configuration file property include
LOG_NONE, LOG_ALLOW,
LOG_DENY, and LOG_BOTH.
Specifies where audit messages are logged. By default, audit messages are logged remotely.
Property: com.sun.identity.agents.config.log.disposition
Valid values for the configuration file property include
REMOTE, LOCAL, and
ALL.
Name of file stored on OpenAM server that contains agent audit messages if log location is remote or all.
Property: com.sun.identity.agents.config.remote.logfile
Hot swap: no
When enabled, audit log files are rotated when reaching the specified size.
Property: com.sun.identity.agents.config.local.log.rotate
Beyond this size limit in bytes the agent rotates the local audit log file if rotation is enabled.
Property: com.sun.identity.agents.config.local.log.size
Default: 50 MB
Enables checking of FQDN default value and FQDN map values.
Property: com.sun.identity.agents.config.fqdn.check.enable
Fully qualified domain name that the users should use in order to access resources.
This property ensures that when users access protected resources on the web server without specifying the FQDN, the agent can redirect the users to URLs containing the correct FQDN.
Property: com.sun.identity.agents.config.fqdn.default
Enables virtual hosts, partial hostname and IP address to access protected resources. Maps invalid or virtual name keys to valid FQDN values so the agent can properly redirect users and the agents receive cookies belonging to the domain.
To map myserver to
myserver.mydomain.example, enter
myserver in the Map Key field, and enter
myserver.mydomain.example in the Corresponding Map Value
field. This corresponds to
com.sun.identity.agents.config.fqdn.mapping[myserver]= myserver.mydomain.example.
Property: com.sun.identity.agents.config.fqdn.mapping
This section covers application web agent properties. After creating
the agent profile, you access these properties in the OpenAM console under
Access Control > Realm Name > Agents >
J2EE > Agent Name > Application.
Specifies the list of absolute URIs corresponding to a protected
application's web.xml
form-login-page element, such as
/myApp/jsp/login.jsp.
Property: com.sun.identity.agents.config.login.form
Specifies the list of absolute URIs corresponding to a protected
application's web.xml
form-error-page element, such as
/myApp/jsp/error.jsp.
Property: com.sun.identity.agents.config.login.error.uri
When enabled, the agent uses the internal default content file for the login.
Property: com.sun.identity.agents.config.login.use.internal
Full path name to the file containing custom login content when Use Internal Login is enabled.
Property: com.sun.identity.agents.config.login.content.file
Specifies how logout handlers map to specific applications. The key is the web application name. The value is the logout handler class.
To set a global logout handler for applications without other
logout handlers defined, leave the key empty and set the value to the
global logout handler class name,
GlobalApplicationLogoutHandler.
To set a logout handler for a specific application, set the key to the name of the application, and the value to the logout handler class name.
Property: com.sun.identity.agents.config.logout.application.handler
Specifies request URIs that indicate logout events. The key is the web application name. The value is the application logout URI.
To set a global logout URI for applications without other logout
URIs defined, leave the key empty and set the value to the global logout
URI, /logout.jsp.
To set a logout URI for a specific application, set the key to the name of the application, and the value to the application logout page.
Property: com.sun.identity.agents.config.logout.uri
Specifies parameters in the HTTP request that indicate logout events. The key is the web application name. The value is the logout request parameter.
To set a global logout request parameter for applications without
other logout request parameters defined, leave the key empty and set the
value to the global logout request parameter,
logoutparam.
To set a logout request parameter for a specific application, set
the key to the name of the application, and the value to the application
logout request parameter, such as logoutparam.
Property: com.sun.identity.agents.config.logout.request.param
When enabled, the agent checks the HTTP request body to locate the Logout Request Parameter you set.
Property: com.sun.identity.agents.config.logout.introspect.enabled
Specifies the URIs to return after successful logout and subsequent authentication. The key is the web application name. The value is the URI to return.
To set a global logout entry URI for applications without other
logout entry URIs defined, leave the key empty and set the value to the
global logout entry URI, /welcome.html.
To set a logout entry URI for a specific application, set the key
to the name of the application, and the value to the application
logout entry URI, such as /myApp/welcome.html.
Property: com.sun.identity.agents.config.logout.entry.uri
Specifies the URIs of custom pages to return when access is denied. The key is the web application name. The value is the custom URI.
To set a global custom access denied URI for applications without
other custom access denied URIs defined, leave the key empty and set the
value to the global custom access denied URI,
/sample/accessdenied.html.
To set a custom access denied URI for a specific application, set
the key to the name of the application, and the value to the application
access denied URI, such as /myApp/accessdenied.html.
Property: com.sun.identity.agents.config.access.denied.uri
List of URIs for which no authentication is required, and the agent does not protect access. You can use wildcards to define a pattern for a URI.
The * wildcard matches all characters except
question mark (?), cannot be escaped, and spans
multiple levels in a URI. Multiple forward slashes do not match a
single forward slash, so * matches
mult/iple/dirs, yet mult/*/dirs
does not match mult/dirs.
The -*- wildcard matches all characters except
forward slash (/) or question mark
(?), and cannot be escaped. As it does not match
/, -*- does not span multiple
levels in a URI.
OpenAM does not let you mix * and
-*- in the same URI.
Examples include /logout.html,
/images/*, /css/-*-, and
/*.jsp?locale=*.
Trailing forward slashes are not recognized as part of a resource
name. Therefore /images// and
/images are equivalent.
Property: com.sun.identity.agents.config.notenforced.uri
Only enforce not enforced list of URIs. In other words, enforce policy only for those URIs and patterns specified in the list.
Property: com.sun.identity.agents.config.notenforced.uri.invert
When enabled, the agent caches evaluation of the not enforced URI list.
Property: com.sun.identity.agents.config.notenforced.uri.cache.enable
When caching is enabled, this limits the number of not enforced URIs cached.
Property: com.sun.identity.agents.config.notenforced.uri.cache.size
Default: 1000
When enabled, the agent reset the session idle time when granting access to a not enforced URI, prolonging the time before the user must authenticate again.
Property: com.sun.identity.agents.config.notenforced.refresh.session.idletime
No authentication and authorization are required for the requests coming from these client IP addresses.
Property: com.sun.identity.agents.config.notenforced.ip
Only enforce the not enforced list of IP addresses. In other words, enforce policy only for those client addresses and patterns specified in the list.
Property: com.sun.identity.agents.config.notenforced.ip.invert
When enabled, the agent caches evaluation of the not enforced IP list.
Property: com.sun.identity.agents.config.notenforced.ip.cache.enable
When caching is enabled, this limits the number of not enforced addresses cached.
Property: com.sun.identity.agents.config.notenforced.ip.cache.size
Default: 1000
When set to HTTP_COOKIE or
HTTP_HEADER, profile attributes are introduced into
the cookie or the headers, respectively. When set to
REQUEST_ATTRIBUTE, profile attributes are part
of the HTTP request.
Property: com.sun.identity.agents.config.profile.attribute.fetch.mode
Maps the profile attributes to HTTP headers for the currently authenticated user. Map Keys are LDAP attribute names, and Map Values are HTTP header names.
To populate the value of profile attribute CN under
CUSTOM-Common-Name: enter CN in the Map Key field,
and enter CUSTOM-Common-Name in the Corresponding
Map Value field. This corresponds to
com.sun.identity.agents.config.profile.attribute.mapping[cn]=CUSTOM-Common-Name.
In most cases, in a destination application where an HTTP header
name shows up as a request header, it is prefixed by
HTTP_, lower case letters become upper case, and
hyphens (-) become underscores (_).
For example, common-name becomes
HTTP_COMMON_NAME.
Property: com.sun.identity.agents.config.profile.attribute.mapping
When set to HTTP_COOKIE or
HTTP_HEADER, response attributes are introduced into
the cookie or the headers, respectively. When set to
REQUEST_ATTRIBUTE, response attributes are part
of the HTTP response.
Property: com.sun.identity.agents.config.response.attribute.fetch.mode
Maps the policy response attributes to HTTP headers for the currently authenticated user. The response attribute is the attribute in the policy response to be fetched.
To populate the value of response attribute uid
under CUSTOM-User-Name: enter uid
in the Map Key field, and enter CUSTOM-User-Name in
the Corresponding Map Value field. This corresponds to
com.sun.identity.agents.config.response.attribute.mapping[uid]=Custom-User-Name.
In most cases, in a destination application where an HTTP header
name shows up as a request header, it is prefixed by
HTTP_, lower case letters become upper case, and
hyphens (-) become underscores (_).
For example, response-attr-one becomes
HTTP_RESPONSE_ATTR_ONE.
Property: com.sun.identity.agents.config.response.attribute.mapping
Specifies the separator for multiple values of the same attribute
when it is set as a cookie. Default: |.
Property: com.sun.identity.agents.config.attribute.cookie.separator
Specifies the java.text.SimpleDateFormat of date
attribute values used when an attribute is set in an HTTP header. Default:
EEE, d MMM yyyy hh:mm:ss z.
Property: com.sun.identity.agents.config.attribute.date.format
When enabled, attribute values are URL encoded before being set as a cookie.
Property: com.sun.identity.agents.config.attribute.cookie.encode
When set to HTTP_COOKIE or
HTTP_HEADER, session attributes are introduced into the
cookie or the headers, respectively. When set to
REQUEST_ATTRIBUTE, session attributes are part
of the HTTP response.
Property: com.sun.identity.agents.config.session.attribute.fetch.mode
Maps session attributes to HTTP headers for the currently authenticated user. The session attribute is the attribute in the session to be fetched.
To populate the value of session attribute
UserToken under CUSTOM-userid:
enter UserToken in the Map Key field, and enter
CUSTOM-userid in
the Corresponding Map Value field. This corresponds to
com.sun.identity.agents.config.session.attribute.mapping[UserToken]=CUSTOM-userid.
In most cases, in a destination application where an HTTP header
name shows up as a request header, it is prefixed by
HTTP_, lower case letters become upper case, and
hyphens (-) become underscores (_).
For example, success-url becomes
HTTP_SUCCESS_URL.
Property: com.sun.identity.agents.config.session.attribute.mapping
Specifies the list of privileged attributes granted to all users
with a valid OpenAM session, such as
AUTHENTICATED_USERS.
Property: com.sun.identity.agents.config.default.privileged.attribute
Specifies the list of privileged attribute types fetched for each user.
Property: com.sun.identity.agents.config.privileged.attribute.type
Specifies how privileged attribute types should be converted to lower case.
Property: com.sun.identity.agents.config.privileged.attribute.tolowercase
Specifies the list of session property names, such as
UserToken which hold privileged attributes for
authenticated users.
Property: com.sun.identity.agents.config.privileged.session.attribute
When enabled, lets you use Privileged Attribute Mapping.
Property: com.sun.identity.agents.config.privileged.attribute.mapping.enable
OpenAM allows original attribute values to be mapped to other
values. For example, you can map UUIDs to principal names in roles
specified in a web application's deployment descriptor. For example, to
map the UUID id=employee,ou=group,o=openam to the
principal name am_employee_role in the deployment
descriptor, set the key to
id=employee,ou=group,o=openam, and the value to
am_employee_role.
Property: com.sun.identity.agents.config.privileged.attribute.mapping
Specifies custom authentication handler classes for users authenticated with the application server. The key is the web application name and the value is the authentication handler class name.
Property: com.sun.identity.agents.config.auth.handler
Specifies custom logout handler classes to log users out of the application server. The key is the web application name and the value is the logout handler class name.
Property: com.sun.identity.agents.config.logout.handler
Specifies custom verification classes to validate user credentials with the local user repository. The key is the web application name and the value is the validation handler class name.
Property: com.sun.identity.agents.config.verification.handler
This section covers SSO web agent properties. After creating the
agent profile, you access these properties in the OpenAM console under
Access Control > Realm Name > Agents >
J2EE > Agent Name > SSO
Name of the SSO Token cookie used between the OpenAM server and
the agent. Default: iPlanetDirectoryPro.
Property: com.iplanet.am.cookie.name
Hot swap: no
When enabled, the agent exposes SSO Cache through the agent SDK APIs.
Property: com.sun.identity.agents.config.amsso.cache.enable
Enables Cross Domain Single Sign On.
Property: com.sun.identity.agents.config.cdsso.enable
Specifies a URI the agent uses to process CDSSO requests.
Property: com.sun.identity.agents.config.cdsso.redirect.uri
List of URLs of the available CDSSO controllers that the agent can
use for CDSSO processing. For example,
http://openam.example.com:8080/openam/cdcservelet.
Property: com.sun.identity.agents.config.cdsso.cdcservlet.url
When set to a value other than zero, specifies the clock skew in seconds that the agent accepts when determining the validity of the CDSSO authentication response assertion.
Property: com.sun.identity.agents.config.cdsso.clock.skew
Specifies the list of OpenAM servers or identity providers the agent trusts when evaluating CDC Liberty Responses.
Property: com.sun.identity.agents.config.cdsso.trusted.id.provider
When enabled, the agent marks the SSO Token cookie as secure, thus the cookie is only transmitted over secure connections.
Property: com.sun.identity.agents.config.cdsso.secure.enable
List of domains, such as .example.com, in which
cookies have to be set in CDSSO.
Property: com.sun.identity.agents.config.cdsso.domain
When enabled, agent resets cookies in the response before redirecting to authentication.
Property: com.sun.identity.agents.config.cookie.reset.enable
List of cookies to reset if Cookie Reset is enabled.
Property: com.sun.identity.agents.config.cookie.reset.name
Specifies how names from the Cookie Reset Name List correspond to cookie domain values when the cookie is reset.
Property: com.sun.identity.agents.config.cookie.reset.domain
Specifies how names from the Cookie Reset Name List correspond to cookie paths when the cookie is reset.
Property: com.sun.identity.agents.config.cookie.reset.path
This section covers OpenAM services web agent properties. After
creating the agent profile, you access these properties in the OpenAM console
under Access Control > Realm Name >
Agents > J2EE > Agent Name > OpenAM
Services.
OpenAM login page URL, such as
http://openam.example.com:8080/openam/UI/Login, to
which the agent redirects incoming users without sufficient credentials
so then can authenticate.
Property: com.sun.identity.agents.config.login.url
To conditionally redirect users based on the incoming request URL, set this property.
This takes the incoming request URL to match, a vertical bar
( | ), and then a comma-separated list of URLs to
which to redirect incoming users.
If the string before the vertical bar matches an incoming request
URL, then the policy agent uses the list of URLs to determine how to
redirect the user-agent. If the global property FQDN Check
(com.sun.identity.agents.config.fqdn.check.enable)
is enabled for the policy agent, then the policy agent iterates through
the list until it finds an appropriate redirect URL that matches the
FQDN check. Otherwise, the policy agent redirects the user-agent to the
first URL in the list.
Property: com.sun.identity.agents.config.conditional.login.url
Examples: com.sun.identity.agents.config.conditional.login.url[0]=
login.example.com/|http://openam1.example.com/openam/UI/Login,
http://openam2.example.com/openam/UI/Login,
com.sun.identity.agents.config.conditional.login.url[1]=
login.example.com|http://openam3.example.com/openam/UI/Login,
http://openam4.example.com/openam/UI/Login
When enabled, OpenAM uses the priority defined in the OpenAM Login URL list as the priority for Login and CDSSO URLs when handling failover.
Property: com.sun.identity.agents.config.login.url.prioritized
When enabled, OpenAM checks the availability of OpenAM Login URLs before redirecting to them.
Property: com.sun.identity.agents.config.login.url.probe.enabled
Timeout period in milliseconds for OpenAM to determine whether to failover between Login URLs when Login URL Probe is enabled.
Property: com.sun.identity.agents.config.login.url.probe.timeout
Default: 2000
OpenAM logout page URLs, such as
http://openam.example.com:8080/openam/UI/Logout. The
user is logged out of the OpenAM session when accessing these URLs.
Property: com.sun.identity.agents.config.logout.url
The values take the incoming request URL to match and a comma-separated list of URLs to which to redirect users logging out.
Property: com.forgerock.agents.conditional.logout.url
Example: com.forgerock.agents.conditional.logout.url[0]=
logout.example.com|http://openam1.example.com/openam/UI/Logout,
http://openam2.example.com/openam/UI/Logout
When enabled, OpenAM uses the priority defined in the OpenAM Logout URL list as the priority for Logout URLs when handling failover.
Property: com.sun.identity.agents.config.logout.url.prioritized
When enabled, OpenAM checks the availability of OpenAM Logout URLs before redirecting to them.
Property: com.sun.identity.agents.config.logout.url.probe.enabled
Timeout period in milliseconds for OpenAM to determine whether to failover between Logout URLs when Logout URL Probe is enabled.
Property: com.sun.identity.agents.config.logout.url.probe.timeout
Default: 2000
Specifies the protocol used by the OpenAM authentication service.
Property: com.iplanet.am.server.protocol
Hot swap: no
Specifies the OpenAM authentication service host name.
Property: com.iplanet.am.server.host
Hot swap: no
Specifies the OpenAM authentication service port number.
Property: com.iplanet.am.server.port
Hot swap: no
When enabled, OpenAM sends notification about changes to policy.
Property: com.sun.identity.agents.notification.enabled
Hot swap: no
Specifies the time in minutes after which the policy cache is refreshed.
Property: com.sun.identity.agents.polling.interval
Default: 3
Hot swap: no
Set to cache mode subtree when only a small number of policy rules are defined. For large numbers of policy rules, set to self.
Property: com.sun.identity.policy.client.cacheMode
Hot swap: no
Specifies the values, such as allow and
deny, that are associated with boolean policy
decisions.
Default: iPlanetAMWebAgentService|GET|allow|deny:iPlanetAMWebAgentService|POST|allow|deny
Property: com.sun.identity.policy.client.booleanActionValues
Hot swap: no
Specifies the comparators used for service names in policy.
Default: serviceType=iPlanetAMWebAgentService|
class=com.sun.identity.policy.plugins.HttpURLResourceName|wildcard=*|
delimiter=/|caseSensitive=false
Property: com.sun.identity.policy.client.resourceComparators
Hot swap: no
Time in seconds used adjust time difference between agent system and OpenAM. Clock skew in seconds = AgentTime - OpenAMServerTime.
Default: 10.
Property: com.sun.identity.policy.client.clockSkew
Hot swap: no
Specifies the list of HTTP GET request parameters whose names and values the agents sets in the environment map for URL policy evaluation by the OpenAM server.
Property: com.sun.identity.agents.config.policy.env.get.param
Specifies the list of HTTP POST request parameters whose names and values the agents sets in the environment map for URL policy evaluation by the OpenAM server.
Property: com.sun.identity.agents.config.policy.env.post.param
Specifies the list of HTTP session attributes whose names and values the agents sets in the environment map for URL policy evaluation by the OpenAM server.
Property: com.sun.identity.agents.config.policy.env.jsession.param
When enabled, the remote policy client is configured to use HTTP-Redirect instead of HTTP-POST for composite advice.
Property: com.sun.identity.agents.config.policy.advice.use.redirect
When enabled, receive notification from OpenAM to update user management data caches.
Property: com.sun.identity.idm.remote.notification.enabled
Hot swap: no
If notifications are not enabled and set to a value other than zero, specifies the time in minutes after which the agent polls to update cached user management data.
Property: com.iplanet.am.sdk.remote.pollingTime
Default: 1
Hot swap: no
When enabled, receive notification from OpenAM to update service configuration data caches.
Property: com.sun.identity.sm.notification.enabled
Hot swap: no
If notifications are not enabled and set to a value other than zero, specifies the time in minutes after which the agent polls to update cached service configuration data.
Property: com.sun.identity.sm.cacheTime
Default: 1
Hot swap: no
When enabled, the session client polls to update the session cache rather than relying on notifications from OpenAM.
Property: com.iplanet.am.session.client.polling.enable
Hot swap: no
Specifies the time in seconds after which the session client requests an update from OpenAM for cached session information.
Property: com.iplanet.am.session.client.polling.period
Default: 180
Hot swap: no
This section covers miscellaneous web agent properties. After creating
the agent profile, you access these properties in the OpenAM console under
Access Control > Realm Name > Agents >
J2EE > Agent Name > Miscellaneous.
The default language for the agent.
Property: com.sun.identity.agents.config.locale.language
Hot swap: no
The default country for the agent.
Property: com.sun.identity.agents.config.locale.country
Hot swap: no
When enabled, activate port checking, correcting requests on the wrong port.
Property: com.sun.identity.agents.config.port.check.enable
Specifies the name of the file containing the content to handle requests on the wrong port when port checking is enabled.
Property: com.sun.identity.agents.config.port.check.file
Specifies which ports correspond to which protocols. The agent uses the map when handling requests with invalid port numbers during port checking.
Property: com.sun.identity.agents.config.port.check.setting
Specifies a list of principals the agent bypasses for
authentication and search purposes, such as guest
or testuser.
Property: com.sun.identity.agents.config.bypass.principal
Specifies the agent's encryption provider class.
Default: com.iplanet.services.util.JCEEncryption
Property: com.iplanet.security.encryptor
Hot swap: no
When enabled, strip path info from the request URL while doing the Not Enforced List check, and URL policy evaluation. This is designed to prevent a user from accessing a URI by appending the matching pattern in the policy or not enforced list.
For example, if the not enforced list includes
/*.gif, then stripping path info from the request URL
prevents access to http://host/index.html by using
http://host/index.html?hack.gif.
Property: com.sun.identity.agents.config.ignore.path.info
Property used only when CDSSO is enabled. Only change the default
value, goto when the login URL has a landing page
specified such as,
com.sun.identity.agents.config.cdsso.cdcservlet.url
= http://openam.example.com:8080/openam/cdcservlet?goto=
http://www.example.com/landing.jsp.
The agent uses this parameter to append the original request URL
to this cdcserlet URL. The landing page consumes this parameter to
redirect to the original URL.
As an example, if you set this value to goto2,
then the complete URL sent for authentication is
http://openam.example.com:8080/openam/cdcservlet?goto=
http://www.example.com/landing.jsp?goto2=http://www.example.com/original.jsp.
Property: com.sun.identity.agents.config.redirect.param
When enabled, provide support for legacy browsers.
Property: com.sun.identity.agents.config.legacy.support.enable
List of header values that identify legacy browsers. Entries can
use the wildcard character, *.
Property: com.sun.identity.agents.config.legacy.user.agent
Specifies a URI the agent uses to redirect legacy user agent requests.
Property: com.sun.identity.agents.config.legacy.redirect.uri
This section covers advanced web agent properties. After creating the
agent profile, you access these properties in the OpenAM console under
Access Control > Realm Name > Agents >
J2EE > Agent Name > Advanced.
If the agent is behind a proxy or load balancer, then the agent can get client IP and host name values from the proxy or load balancer. For proxies and load balancer that support providing the client IP and host name in HTTP headers, you can use the following properties.
When multiple proxies are load balancers sit in the request path,
the header values can include a comma-separated list of values with the
first value representing the client, as in
client,next-proxy,first-proxy.
HTTP header name that holds the IP address of the client.
Property: com.sun.identity.agents.config.client.ip.header
HTTP header name that holds the hostname of the client.
Property: com.sun.identity.agents.config.client.hostname.header
Enable web service processing.
Property: com.sun.identity.agents.config.webservice.enable
Specifies a list of web application end points that represent web services.
Property: com.sun.identity.agents.config.webservice.endpoint
When enabled, the agent processes HTTP GET requests for web service endpoints.
Property: com.sun.identity.agents.config.webservice.process.get.enable
Specifies a class implementing
com.sun.identity.agents.filter.IWebServiceAuthenticator,
used to authenticate web service requests.
Property: com.sun.identity.agents.config.webservice.responseprocessor
Specifies a class implementing
com.sun.identity.agents.filter.IWebServiceResponseProcessor,
used to process web service reponses.
Property: com.sun.identity.agents.config.webservice.responseprocessor
Specifies a file the agent uses to generate an internal error fault for the client application.
Property: com.sun.identity.agents.config.webservice.internalerror.content
Specifies a file the agent uses to generate an authorization error fault for the client application.
Property: com.sun.identity.agents.config.webservice.autherror.content
Specifies the host name of the agent protected server to show to client browsers, rather than the actual host name.
Property: com.sun.identity.agents.config.agent.host
Specifies the port number of the agent protected server to show to client browsers, rather than the actual port number.
Property: com.sun.identity.agents.config.agent.port
Specifies the protocol used to contact the agent from the browser
client browsers, rather than the actual protocol used by the server.
Either http or https.
Property: com.sun.identity.agents.config.agent.protocol
When enabled, allow programmatic authentication with the JBoss
container using the WebAuthentication feature. This feature works only with
JBoss 4.2.2 to 7 when the J2EE_POLICY or
ALL filter mode is in use.
Property: com.sun.identity.agents.config.jboss.webauth.available
Specifies strings that, when found in the request, cause the agent to redirect the client to an error page.
Property: com.sun.identity.agents.config.xss.code.elements
Maps applications to URIs of customized pages to which to redirect clients upon detection of XSS code elements.
For example, to redirect clients of MyApp to
/myapp/error.html, enter MyApp as the Map Key and
/myapp/error.html as the Corresponding Map
Value.
Property: com.sun.identity.agents.config.xss.redirect.uri
Enables HTTP POST data preservation, storing POST data before redirecting the browser to the login screen, and then autosubmitting the same POST after successful authentication to the original URL.
Property: com.sun.identity.agents.config.postdata.preserve.enable
Specifies a list of application-specific URIs if the referenced Post Data Preservation entry cannot be found in the local cache because it has exceeded its POST entry TTL. Either the agent redirects to a URI in this list, or it shows an HTTP 403 Forbidden error.
Property: com.sun.identity.agents.config.postdata.preserve.cache.noentry.url
POST data storage lifetime in milliseconds. Default: 300000.
Property: com.sun.identity.agents.config.postdata.preserve.cache.entry.ttl
Specifies whether to create a cookie, or to append a query string to the URL to assist with sticky load balancing.
Property: com.sun.identity.agents.config.postdata.preserve.stickysession.mode
Specifies the key-value pair for stickysession mode. For example,
a setting of lb=myserver either sets an
lb cookie with myserver value, or
adds lb=myserver to the URL query string.
Property: com.sun.identity.agents.config.postdata.preserve.stickysession.value
Additional properties to augment the set of properties supported by agent. Such properties take the following forms.
customproperty=custom-value1
customlist[0]=customlist-value-0
customlist[1]=customlist-value-1
custommap[key1]=custommap-value-1
custommap[key2]=custommap-value-2
Property: com.sun.identity.agents.config.freeformproperties
This section covers Web Service Provider (WSP) properties. WSPs both validate incoming web service requests from Web Service Clients (WSC), and also secure outgoing responses sent back to WSCs.
After creating a WSP profile, you access WSP properties in the
OpenAM console under Access Control > Realm Name
> Agents > Web Service Provider > Agent
Name.
For assigning the agent to a previously configured agent group in order to inherit selected properties from the group.
Agent password used when creating the password file and when installing the agent.
Status of the agent configuration.
OpenAM identifier for the agent configuration.
Specifies the mechanisms allowed to validate the web service request.
Specifies which OpenAM authentication chain consumes the credentials from the web service request to authenticate the WSC.
Specifies how to covert the incoming token before issuing requests to other WSPs.
Yes means the agent preserves SOAP security headers from the request for subsequent processing.
Yes means the agent checks whether the request is a replay of an earlier request, and if so, rejects the request.
Yes means the agent checks whether the user token is a replay from an earlier requests, and if so, rejects the request.
Specifies the type of key, such as PublicKey,
used to verify the request signature.
Specifies the Universal Resource Name for the Liberty service type used for lookups.
Specifies a Uniform Resource Identitier shared by the WSP and WSC.
Specifies the user name and password credentials compared with the user name security token in a request.
Maps SAML attribute names from the incoming request to attribute names as retrieved from the SSOToken or the identity repository, used to have the Security Token Service generate an appropriate SAML assertion.
Specifies the class name of a plugin used to perform SAML account mapping.
Identifies the attribute name space used when generating SAML assertions.
Yes means the agent includes the principal's membership as a SAML attribute.
Yes means verify signatures in requests.
Yes means the agent signs the specified parts of the response with its x509 certificate.
Specifies how the x509 certificate used to sign responses is referenced in the response.
Yes means do decrypt the specified parts of incoming requests.
Yes means do encrypt the outgoing response.
Specifies whether to use Advanced Encryption Standard, corresponding to an Encryption Strength of 128, 192, or 256, or to use Triple DES with a key length of 0, 112, or 168.
Specifies the key length used for encryption.
Specifies the alias of the certificate in the key store used to verify request signatures and encrypt responses.
Specifies the alias of the certificate in the key store used to sign responses and decrypt requests.
If you use your own, custom key store, specify how to access it here.
If the WSC sends requests through a web service proxy, specify that as the end point here.
Specifies the end point to which the WSC sends requests.
Specifies the fully qualified domain name of the Kerberos Distribution Center service.
Specifies the Kerberos Distribution Center domain name. For Windows environments this is the domain controller domain name.
Specifies the Kerberos principal used by OpenAM, using the form
HTTP/,
where openam-fqdn@krb-domainopenam-fqdn is the fully qualified domain
name for OpenAM, and krb-domain is the
Kerberos Domain.
Specifies the Kerberos keytab file using the form
,
where openam-host.HTTP.keytabopenam-host is the host name for
OpenAM.
Yes means the agent signs the Kerberos token.
This section covers Web Service Client (WSC) properties. WSCs both secure outgoing requests sent to Web Service Providers (WSP), and also validate incoming from WSPs.
After creating a WSC profile, you access WSC properties in the
OpenAM console under Access Control > Realm Name
> Agents > Web Service Client > Agent
Name.
For assigning the agent to a previously configured agent group in order to inherit selected properties from the group.
Agent password used when creating the password file and when installing the agent.
Status of the agent configuration.
OpenAM identifier for the agent configuration.
Specifies the mechanism used to secure web service requests.
Specifies the agent used to secure requests to the Security Token Service.
Specifies the agent used to secure requests to the Discovery Service.
Yes means users must authenticate to access the WSC's protected page.
Yes means the agent preserves SOAP security headers in the request for subsequent processing.
Yes means the agent passes along the Security Token from the Subject, rather than generating a token or requesting it from the Security Token Service.
Specifies the Universal Resource Name for the Liberty service type used for lookups.
Specifies the user name and password credentials shared with the WSP and used to generate a Username Security Token.
Specifies a Uniform Resource Identitier shared by the WSP and WSC.
Maps SAML attribute names from the outgoing request to attribute names as retrieved from the SSOToken or the identity repository.
Specifies the class name of a plugin used to perform SAML account mapping.
Identifies the attribute name space used when generating SAML assertions.
Yes means the agent includes the principal's membership as a SAML attribute.
Yes means the agent signs the specified parts of the request with its x509 certificate.
Specifies how the x509 certificate used to sign requests is referenced in the request.
Yes means verify signatures in responses.
Yes means do encrypt the specified parts of outgoing requests.
Specifies whether to use Advanced Encryption Standard, corresponding to an Encryption Strength of 128, 192, or 256, or to use Triple DES with a key length of 0, 112, or 168.
Specifies the key length used for encryption.
Yes means do decrypt the incoming response.
Specifies the alias of the certificate in the key store used to sign requests and decrypt responses.
Specifies the alias of the certificate in the key store used to verify response signatures and encrypt requests.
If you use your own, custom key store, specify how to access it here.
If the WSC sends requests through a web service proxy, specify that as the end point here.
Specifies the end point to which the WSC sends requests.
Specifies the fully qualified domain name of the Kerberos Distribution Center service.
Specifies the Kerberos Distribution Center domain name. For Windows environments this is the domain controller domain name.
Specifies the Kerberos principal used by OpenAM, using the form
HTTP/,
where openam-fqdn@krb-domainopenam-fqdn is the fully qualified domain
name for OpenAM, and krb-domain is the
Kerberos Domain.
Specifies the directory in which Kerberos Ticket Granting Tickets (TGT) are cached. The kinit command stores the TGT from the KDC here.
This section covers Discover Service Client properties. Discovery Service clients get Liberty security tokens from a Liberty Discovery Service.
After creating a Discovery Client profile, you access Discovery agent
properties in the OpenAM console under Access Control > Realm
Name > Agents > STS Client > Agent
Name.
For assigning the agent to a previously configured agent group in order to inherit selected properties from the group.
Agent password used when creating the password file and when installing the agent.
Status of the agent configuration.
Specifies the alias of the private key used to sign requests and decrypt responses.
Specifies the end point with which the trust authority client communicates for service registration and service lookups.
Specifies the end point with which the web services client communicates to get end user SSOTokens and Discover Service resource offerings.
This section covers Security Token Service (STS) Client properties. STS clients both secure outgoing requests to trust authorities, and also validate incoming requests from trust authorities. You can configure STS clients to work with OpenAM's Security Token Service and with its Discovery Service.
After creating an STS Client profile, you access STS Client properties
in the OpenAM console under Access Control > Realm
Name > Agents > STS Client > Agent
Name.
For assigning the agent to a previously configured agent group in order to inherit selected properties from the group.
Agent password used when creating the password file and when installing the agent.
Status of the agent configuration.
Specifies whether to use WS-Trust 1.3 or 1.0.
OpenAM identifier for the agent configuration.
Specifies the mechanism used to secure the STS request.
Specifies the STS Client agent profile to use if the security mechanism is STS Security.
Yes means the agent preserves SOAP security headers for subsequent processing.
Specifies the user name and password credentials the agent uses to generate a Username security token.
Specifies the type of key, such as PublicKey,
used to encrypt responses.
Specifies the Uniform Resource Identitiers for the claims to be represented in the Security Token.
Specifies a Uniform Resource Identitier shared by the agent and the WSC.
Maps SAML attribute names from the incoming request to attribute names as retrieved from the SSOToken or the identity repository, used to have the Security Token Service generate an appropriate SAML assertion.
Specifies the class name of a plugin used to perform SAML account mapping.
Identifies the attribute name space used when generating SAML assertions.
Yes means the agent includes the principal's membership as a SAML attribute.
Yes means verify signatures in responses.
Yes means the agent signs the specified parts of the request with its x509 certificate.
Specifies how the x509 certificate used to sign requests is referenced in the request.
Yes means do encrypt the specified parts of requests.
Yes means do decrypt the response.
Specifies whether to use Advanced Encryption Standard, corresponding to an Encryption Strength of 128, 192, or 256, or to use Triple DES with a key length of 0, 112, or 168.
Specifies the key length used for encryption.
Specifies the alias of the certificate in the key store used to verify response signatures and encrypt requests.
Specifies the alias of the certificate in the key store used to sign requests and decrypt responses.
If you use your own, custom key store, specify how to access it here.
Specifies the URL to the Security Token Service end point.
Specifies the URL to the Security Token Service message exchange end point.
Specifies the fully qualified domain name of the Kerberos Distribution Center service.
Specifies the Kerberos Distribution Center domain name. For Windows environments this is the domain controller domain name.
Specifies the Kerberos principal used by OpenAM, using the form
HTTP/,
where openam-fqdn@krb-domainopenam-fqdn is the fully qualified domain
name for OpenAM, and krb-domain is the
Kerberos Domain.
Specifies the directory in which Kerberos Ticket Granting Tickets (TGT) are cached. The kinit command stores the TGT from the KDC here.
This section covers version 2.2 agent properties. Version 2.2 agents store their configurations locally, with a user name, password combination used to connect to OpenAM.
After creating the agent profile, you access agent properties in the
OpenAM console under Access Control > Realm Name
> Agents > 2.2 Agents > Agent Name.
Specifies the password the agent uses to connect to OpenAM.
Specifies whether the agent profile is active, and so can be used.
Specifies a short description for the agent.
Additional key-value pairs that OpenAM uses to receive agent requests concerning credential assertions.
OpenAM currently supports one property,
agentRootURL=
where the key is case-sensitive.protocol://host:port/
When you want to register an OAuth 2.0 client with OpenAM as the
OAuth 2.0 authorization server, create an OAuth 2.0 Client agent profile.
After creating the agent profile, you can further configure the properties
in the OpenAM console under Access Control > Realm
Name > Agents > OAuth 2.0 Client > Client
Name.
Set this if you have configured an OAuth 2.0 Client agent group.
Whether the client profile is active for use.
The client password as described by RFC 6749 in the section, Client Password.
Confidential clients can maintain confidentiality of their credentials. Public clients cannot.
A web application running on a server where its credentials are protected is an example of a confidential client.
A JavaScript client running in a browser is an example of a public client.
Specify client redirection endpoint URIs as described by RFC 6749 in the section, Redirection Endpoint. OpenAM's OAuth 2.0 authorization service redirects the the resource owner's user-agent back to this endpoint during the authorization code grant process. If your client has more than one redirection URI, then it must specify the redirection URI to use in the authorization request.
Specify scopes in
or scope format. These scopes are to be
presented to the resource owner when the resource owner is asked to
authorize client access to protected resources.scope|locale|localized
description
Specify a client name to display to the resource owner
when the resource owner is asked to authorize client access to protected
resources. Valid formats include or name.locale|localized
name
Specify a client description to display to the resource owner
when the resource owner is asked to authorize client access to protected
resources. Valid formats include or description.locale|localized
description
Specify scopes in
or scope format. These scopes are set
automatically when tokens are issued.scope|locale|localized
description
An agent authenticator has read-only access to multiple agent profiles defined in the same realm, typically allowing an agent to read web service agent profiles.
After creating the agent profile, you access agent properties in the
OpenAM console under Access Control > Realm Name
> Agents > Agent Authenticator > Agent
Name.
Specifies the password the agent uses to connect to OpenAM.
Specifies whether the agent profile is active, and so can be used.
Specifies which agent profiles in the realm the agent authenticator can read.
Specifies the list of agent root URLs for CDSSO. The valid value is
in the format
where protocol://hostname:port/protocol represents the protocol used,
such as http or https,
hostname represents the host name of the
system where the agent resides, and port
represents the port number on which the agent is installed.
The slash following the port number is required.
If your agent system also has virtual host names, add URLs with
the virtual host names to this list as well. OpenAM checks that
goto URLs match one of the agent root URLs for
CDSSO.
[6] The configuration file syntax is that of a standard Java properties file, though backslash escapes can be used only to wrap long lines. See java.util.Properties.load for a description of the format. The value of a property specified multiple times is not defined.
[7] The configuration file syntax is that of a standard Java properties file, though backslash escapes can be used only to wrap long lines. See java.util.Properties.load for a description of the format. The value of a property specified multiple times is not defined.
This chapter focuses on how to enable users to reset their own passwords in secure fashion.
Users who know their passwords, but must reset them because for example
the password is going to expire, can reset their passwords by successfully
authenticating to OpenAM, visiting their end user pages, such as
http://openam.example.com:8080/openam/idm/EndUser, and
clicking Edit next to the Password field to display the change password
page.
You therefore do not need to configure password reset for users
who can remember their current password. Instead, you point them to the
idm/EndUser page to let them do it themselves.
OpenAM can provide self-service password reset for forgotten passwords. To enable self-service password reset, you must configure the password reset service itself, which consists mainly of setting up secret questions, and configuring an SMTP mail server to send reset passwords to the users of the service.
Users must be able to access their mail after the service resets their passwords, or they will not be able to receive the new password. Do not therefore set up the service to reset the password used to access the email account specified in the user's profile.
You can configure the password reset service for OpenAM, letting each realm inherit the global settings.
When OpenAM is configured with default settings, it uses the
ldapService authentication chain, which relies on the
DataStore authentication module. The
DataStore authentication module provides a generic
authentication mechanism for OpenAM data stores, and therefore cannot
handle specific data store settings, such as the directory server password
policy setting to force password changes on reset. When you use settings
the module cannot handle, then authentication can fail.
If you must configure the directory server to force password changes
on reset, then also configure a separate authentication chain for users.
The separate authentication chain must require the LDAP
authentication module rather than the DataStore
authentication module.
You can create and configure authentication chains, and assign them
in the OpenAM console under Access Control > Realm
Name > Authentication.
The OpenAM administrator, amadmin, uses the
DataStore authentication module. If you set Access
Control > /(Top Level Realm) > Authentication >
Core > Organization Authentication Configuration to use your
LDAP based authentication chain for users, let the
Administrator Authentication Configuration continue to use the
DataStore based authentication chain. To login to the
OpenAM console as amadmin, access the administrator
console service instead of the UI login service endpoint. For example:
http://openam.example.com:8080/openam/console.
In the OpenAM console, browse to Configuration > Global > Password Reset in the Global Properties list.
In the Password Reset page, use the following hints to adjust settings, and then save your work.
In addition to the User Validation and Secret Question values provided, you must configure at least the Bind DN and Bind Password of the user who can reset passwords in the LDAP data store.
OpenAM uses this LDAP attribute and the value entered by the user to look up the user profile in the data store.
This list corresponds to property values held in the file
WEB-INF/classes/amPasswordReset.properties under
the directory where OpenAM is deployed.
For localized versions of this file, copy
WEB-INF/classes/amPasswordReset.properties to
WEB-INF/classes/amPasswordReset.properties_,
and localize only the values of the questions. For example if the
default properties file contains:locale
favourite-restaurant=What is your favorite restaurant?
Then WEB-INF/classes/amPasswordReset.properties_fr
ought to contain:
favourite-restaurant=Quel est votre restaurant préféré ?
If you change these files, you must restart OpenAM.
An additional LDAP search filter you specify here is &-ed with the filter constructed for user validation to find the user entry in the data store.
If you specify no base DN for the search, the search for the user entry starts from the base DN for the realm.
The DN of the user with access to change passwords in the LDAP data store.
The password of the user with access to change passwords in the LDAP data store.
Classname of a plugin that implements the
PasswordGenerator interface.
Classname of a plugin that implements the
NotifyPassword interface.
Enables the service.
When enabled, allows the user to create custom secret questions.
Maximum number of questions to ask during password reset.
When enabled, the user must change her password next time she logs in after OpenAM resets her password.
When enabled, the user only gets the specified number of tries before her account is locked.
If Password Reset Failure Lockout is enabled, this specifies the maximum number of tries to reset a password within the specified interval before the user's account is locked.
This interval applies when Password Reset Failure Lockout is enabled, and when Password Reset Failure Lockout Count is set. During this interval, a user can try to reset her password the specified number of times before being locked out. For example, if this interval is 5 minutes and the count is set to 3, a user gets 3 tries during a given 5 minute interval to reset her password.
This specifies the administrator address(es) which receive(s)
notification on user account lockout. Each address must be a full
email address such as admin@example.com, or
admin@host.domain.
OpenAM must be able to send mail through an SMTP-capable service for this to work. See Procedure 7.2, “To Set Up SMTP Mail Notification”.
If you configure Password Reset Failure Lockout, set this to warn users who are about to use up their count of tries.
If you configure Password Reset Failure Lockout, set this to a
number of minutes other than 0 so that lockout is
temporary, requiring only that the locked-out user wait to try again
to reset her password, rather than necessarily require help from
an administrator.
If you configure Password Reset Failure Lockout, then OpenAM sets
sets data store attribute to inactive upon
lockout.
If set to inactive, then a user who is locked
out cannot attempt to reset her password if the Password Reset
Failure Lockout Duration is 0.
If you changed Secret Questions in the
WEB-INF/classes/amPasswordReset.properties file or in
any localized versions, restart OpenAM for the changes to take
effect.
By default, OpenAM expects the SMTP service to listen on
localhost:25. You can change these settings.
In the OpenAM console, click the Configuration > Servers and Sites > Default Server Settings.
In the Edit server-default page, scroll down to Mail Server to change the Mail Server Host Name or Mail Server Port Number.
Save your work.
Before a user can reset her password, she must choose answers for secret questions.
When her account is first created, direct the user to her
idm/EndUser page, such as
http://openam.example.com:8080/openam/idm/EndUser,
where she can provide a valid email address to recover the reset password
and can edit Password Reset Options.
By default OpenAM console redirects end users to this page when they login.
After the user updates her secret questions, she can use the password reset service when necessary.
Answers to secret questions are case sensitive.
Having setup her email and answers to secret questions, the user can use the reset password service.
Create a test subject and use these steps to validate your configuration.
Send the user with a forgotten password to enter her user ID at the password reset URL.
If the user is in the default realm use password
at the end of the URL to OpenAM, as in
http://openam.example.com:8080/openam/password.
If the password reset service is enabled only for the user's realm
and not the parent realm, or the realm to reset the password is different
from the user's default realm, use ui/PWResetUserValidation?realm=
realm
name, as inhttp://openam.example.com:8080/openam/ui/PWResetUserValidation?realm=.realm
name
The user answers the specified questions, and clicks OK.
OpenAM resets the password, sending mail to the SMTP service you configured.
The user receives the email with a line such as the following.
Your OpenAM password was changed to: 647bWluw
The user logs in using the new password.
If you configured the system to force a change on password reset, then OpenAM requires the user to change her password.
This chapter describes the configuration of Single Sign-On (SSO) services for multiple resources on one domain. To understand how SSO works, you need to understand some key elements of the HTTP cookie, as described in RFC 6525, HTTP State Management Mechanism.
With SSO a user can access multiple independent services from a single session.
Within an HTTP cookie, you can store a single custom
pair, such as
name=value.
Other custom names within a cookie are as follows.sessionid=value
Normally set to the domain from where the cookie was issued. To work with multiple subdomains,
the Domain should be set to a URL like
Domain=example.net. This is also known as the cookie domain,
as defined in the
Configuration Reference chapter of the Reference document.
A cookie domain set to example.net will work for subdomains such as
app1.example.net and service1.example.net.
The directory in the URL to which the cookie applies. If the Path
=/openam, the cookie applies to the /openam subdirectory of
the FQDN, and lower level directories, including openam/UI and
openam/UI/Login.
If the Secure name is included, the cookie can be transferred only over
HTTPS. When a request is made over HTTP, the cookie is not made available to the application.
When the HttpOnly name is included, that cookie will not be accessible
through JavaScript. According to
RFC 6265,
the noted flag "instructs the user agent to omit the cookie when providing access to cookies via
'non-HTTP' APIs (such as a web browser API that exposes cookies to scripts)."
The lifetime of a cookie can be limited, with an Expires name configured
with a time, based on UTC (GMT).
Be careful. Do not take a shortcut with a top-level domain. Web browser clients today are designed to
ignore cookies set to top-level domains including com, net, and
co.uk. In addition, a cookie with a value like Domain=
app1.example.net will not work for similar subdomains such as
app2.example.net.
OpenAM uses cookies to track user sessions. The diagram shown next illustrates how OpenAM assigns and tracks cookies.
In the diagram:
The domain shown in the description is example.net
The protected resource application can be found on app.example.net
The OpenAM server is located on sso.example.net.
A client points his browser to a protected resource application. An agent on the application checks the client browser cookies for the presence of a session ID, a component of an SSO Token. If such a Session ID exists and is valid, the agent requests validation (see arrow 8).
If no valid session ID currently exists, the agent redirects the client to OpenAM for authentication (AuthN). The client is then sent to OpenAM for AuthN. If the client submits valid credentials, the AuthN service creates a session cookie. The SSO Token and configured domain name is embedded in that cookie. OpenAM issues an HTTP redirect to send the client browser back to the protected resource. The SSO Token is actually a Java Object.
The agent then verifies the validity of the session with the OpenAM session service, before granting access.
In general, problems with SSO relate to some sort of mismatch of domain names. For example, a cookie that is
configured on a third-level domain such as sso.example.net will not work with an application on a
similar domain such as app.example.net. Even if the Session ID is valid, the application will not
receive the SSO Token. The request is then redirected to OpenAM. The client gets what appears as a SSO Token in the
diagram, which is actually a valid SSO tracking cookie that redirects immediated, and the cycle continues.
Other issues that may lead to similar problems are shown here.
When a cookie domain does not match a domain for the protected application
Assume the application is configured on a domain named example.org. That application
will not receive an SSO Token configured on the example.net domain.
When a third-level domain is used for the SSO Token
If an SSO Token is configured on sso.example.net, an application on
app.example.net does not receive the corresponding cookie. In this case, the solution is to
configure the SSO Token on example.net.
When the Secure flag is used with a regular HTTP application
If you need encrypted communications for an application protected by OpenAM, use the
Secure flag and make sure the application is accessible over HTTPS.
When the path listed in the cookie does not match the path for the application
Perhaps the cookie is configured with an /helloworld path; that won't match an
application that might be configured with an /hellomars path. In that case, the application
will not receive the cookie.
When an inappropriate name is used for the cookie domain
As noted earlier, client browsers are configured to ignore first-level domains such as
com and net as well as functional equivalents such as
co.uk and co.jp.
When working with different browsers
The =name
pairs described earlier may not apply to all browsers. The requirements for an HTTP cookie sent to an IE
browser may differ from the requirements for other standard browsers such as Firefox and Chrome. Based on
anecdotal reports, IE does not recognize domain names that start with a number. In addition, IE reportedly
refuses cookies that include the underscore (_) character in the FQDN.value
Now that you have read about the SSO process, you should be able to set it up on a server configured with OpenAM and a web service protected by an OpenAM agent. The following procedure assumes that you know how to configure OpenAM, the Apache Web server, and associated OpenAM Apache agent.
Install OpenAM as described in the OpenAM
10.2.0-SNAPSHOT Installation Guide. This procedure uses a Server URL of
http://openam.example.net:8080/openam.
Install the appropriate policy agent, as described in the OpenAM Policy
Agent 3.2.0-SNAPSHOT Installation Guide.
This procedure uses an agent URL of http://app.example.net:80,
and an agent name of webagent1.
Make sure that both URLs are configured with IP addresses, as described in the chapter on Installing OpenAM Core Services.
Return to the OpenAM server on http://openam.example.net:8080/openam. Log in as
the administrative user, normally amadmin. To activate and configure the agent,
follow the procedure described in the OpenAM Policy
Agent 3.2.0-SNAPSHOT Installation Guide.
Now you can configure SSO Only mode. In the OpenAM console, click Access Control >
Realm Name > Agents > webagent1. Scroll down
to SSO Only Mode and activate the Enabled box.
Save your changes.
Make sure you have configured the SSO domain, in this case, example.net. Click
Configuration > System > Platform. Make sure example.net (or your chosen domain)
is selected as a cookie domain.
Save your changes.
Restart the web server. The agent should be active. You should now be able to log out of the OpenAM server.
Verify the agent URL, in this case, http://app.example.net. The OpenAM
web agent should now redirect requests to the OpenAM server.
If you want to configure OpenAM and an application on two different cookie domains, such as example.org
and example.net, you will need to set up Cross-Domain SSO (CDSSO). For more
information, see the chapter on
Configuring Cross-Domain Single Sign On.
This chapter shows you how to configure cross-domain single sign on (CDSSO). When you have multiple domains in a single organization, CDSSO lets your OpenAM servers in one domain work with policy agents from other domains.
CDSSO is an OpenAM-specific capability. For single sign on across multiple organizations or when integrating with other access management software, use OpenAM's federation capabilities.
Cross-domain single sign on provides a safe mechanism for managing access across multiple different domains that you control. CDSSO lets OpenAM authenticate users redirected by policy agents in other DNS domains.
Single sign on depends on cookies to store session information. Yet for for security reasons, browsers do not let a web site in one domain to get access to a cookie from another domain. With CDSSO, the policy agents work around this by negotiating with OpenAM to allow access.
The Java EE policy agent allows CDSSO by using a mechanism to write the SSO token from OpenAM authentication to a cookie with the domain the host where the agent runs. The following sequence diagram illustrates this mechanism.
Whereas the Java EE policy agent has an endpoint specifically to handle the cookie domain translation, the web policy agent handles the request directly as shown in the following sequence diagram.
In the OpenAM console, browse to Access Control >
Realm Name > Agents > J2EE >
Agent Name > SSO.
Select Enable Cross Domain SSO.
Check that the CDSSO Redirect URI is set.
Depending on where you deployed your Java EE agent application, the
default is something like /agentapp/sunwCDSSORedirectURI.
Set the list of URLs for CDSSO Servlet URL to the Cross Domain
Controller Servlet URLs of the servers the agent accesses, such as
http://openam.example.com:8080/openam/cdcservlet.
If the agent accesses OpenAM through a load balancer, use the load
balancer URLs, such as
http://load-balancer.example.com:8080/openam/cdcservlet.
Leave the CDSSO Clock Skew set to 0.
Make sure instead that the clocks on the servers where you run OpenAM and policy agents are synchronized.
Set the list of URLs for CDSSO Trusted ID Provider to the Cross Domain
Controller Servlet URLs of the OpenAM servers the agent accesses, such
http://openam.example.com:8080/openam/cdcservlet.
This list should include one CDC Servlet URL for every OpenAM server the agent might access. You do not need to include site or load balancer URLs.
To protect the SSO token from network snooping, you can select CDSSO Secure Enable to mark the SSO token cookie as secure.
If you select this, then the SSO token cookie can only be sent over a secure connection (HTTPS).
Add the domains involved in CDSSO in the CDSSO Domain List.
If necessary, update the Agent Root URL for CDSSO list on the Global tab page.
If the policy agent is on a server with virtual host names, add the virtual host URLs to the list.
If the policy agent is behind a load balancer, add the load balancer URL to the list.
Save your work.
In the OpenAM console, browse to Access Control >
Realm Name > Agents > Web >
Agent Name > SSO.
Select Enable Cross Domain SSO.
Set the list of URLs for CDSSO Servlet URL to the Cross Domain
Controller Servlet URLs of the servers the agent accesses, such as
http://openam.example.com:8080/openam/cdcservlet.
If the agent accesses OpenAM through a load balancer, use the load
balancer URLs, such as
http://load-balancer.example.com:8080/openam/cdcservlet.
Add the domains involved in CDSSO in the Cookies Domain List.
If necessary, update the Agent Root URL for CDSSO list on the Global tab page.
If the policy agent is on a server with virtual host names, add the virtual host URLs to the list.
If the policy agent is behind a load balancer, add the load balancer URL to the list.
Save your work.
The default self-submitting form page that OpenAM presents to users contains hidden fields, but is otherwise blank. If you want to show users that the operation is in progress, then customize the necessary JSP.
Edit a copy of the file
config/federation/default/cdclogin.jsp to add a
clue that SSO is in progress, such as an image.
You can find this file where you deployed OpenAM, such as
/path/to/tomcat/webapps/openam/config/federation/default/cdclogin.jsp.
When you add an image or other presentation element, make sure that you retain the form and JavaScript as is.
Unpack openam-server-10.2.0-SNAPSHOT.war, and replace the file with your modified version.
Also include any images you reference in the page.
Pack up your custom version of OpenAM, and then deploy it in your web container.
When cookies are set for an entire domain such as
.example.com, an attacker who steals a cookie can use it
from any host in the domain such as untrusted.example.com.
Cookie hijacking protection restricts cookies to the fully-qualified domain
name (FQDN) of the host where they are issued, such as
openam-server.example.com and
server-with-agent.example.com, using CDSSO to handle
authentication and authorization.
For CDSSO with cookie hijacking protection, when a client successfully authenticates OpenAM issues the master SSO token cookie for its FQDN. OpenAM issues restricted token cookies for the other FQDNs where the policy agents reside. The client ends up with cookies having different session identifiers for different FQDNs, and the OpenAM server stores the correlation between the master SSO token and restricted tokens, such that the client only has one master session internally in OpenAM.
To protect against cookie hijacking you restrict the OpenAM server domain to the server where OpenAM runs. This sets the domain of the SSO token cookie to the host running the OpenAM server that issued the token. You also enable use of a unique SSO token cookie. For your Java EE policy agents, you enable use of the unique SSO token cookie in the agent configuration as well.
In the OpenAM console, browse to Configuration > System > Platform.
Remove the domain such as .example.com from the
Cookies Domains list, and replace it with the server host name such as
openam.example.com, or if OpenAM is behind a load
balancer with the load balancer host name, such as
load-balancer.example.com.
Save your work.
In the OpenAM console, browse to Configuration > Servers and Sites
> Server Name > Default Server Settings,
and then make these changes:
Set the property
com.sun.identity.enableUniqueSSOTokenCookie to
true.
Add the property
com.sun.identity.authentication.uniqueCookieDomain,
setting the value to the fully-qualified domain name of the OpenAM
server, such as openam.example.com.
Save your work.
For each Java EE policy agent, browse in the OpenAM console to Access
Control > Realm Name > Agents > J2EE >
Agent Name > Advanced > Custom Properties,
and add com.sun.identity.enableUniqueSSOTokenCookie=true
to the list.
Save your work.
This chapter shows how to configure the OpenAM Dashboard.
The Dashboard service provides the end user with an interface to access applications secured by OpenAM, both cloud-based applications like SalesForce and internal applications protected by policy agents. The Dashboard service uses SSO to login to the applications when the user clicks on the application icon. For some apps, like SalesForce, you will want to limit access to only a few users. Other apps, like Google Mail or Drive, you will probably want to make available to all users.
The Dashboard service is meant to give users a single place to access their applications. Keep in mind that this does not limit user access, only what appears on the user Dashboard.
There are three stages to setting up the Dashboard service.
Setup the Dashboard service and add applications.
Add the service to the realms.
Assign users applications so that they appear on the users' Dashboards. This can be done manually or through a provisioning solution.
Making some applications universally available ensures that all users have the same basic applications. However, some of your applications should be protected from the majority of your users. You will need to single out which users will include the application on their Dashboard.
There are three default applications in the Dashboard service: Google, SalesForce, and ZenDesk.
You can add applications to the Dashboard service with the following steps. All fields except the Dashboard Class name and ICF Identifier are required for the application to work properly from the Dashboard.
Login to the OpenAM console as OpenAM Administrator,
amadmin.
On the Configuration tab > Global > Dashboard click New... to add a new application to the Dashboard service and to provide the information needed to connect to the app.
Provide a unique name for the application.
Add a Dashboard Class Name that identifies how the end user
will access the app, such as SAML2ApplicationClass
for a SAML 2.0 application.
Add a Dashboard Name for the application.
Add a Dashboard Display Name. This name is what the end user will see, such as Google.
Add the Dashboard Icon you would like the end user to see for the application. Make sure to include the file type, for example Google.gif or Facebook.png. Please note this should be a fully-qualified URL so that the icon is rendered properly on the user Dashboard.
Add the Dashboard Login URL to point to the location the end user will go to once they click on the icon.
Leave the ICF Identifier blank.
Click Save when you are done.
You must add the Dashboard service to a realm before it will be available. The following instructions show you how to add an application to a single realm. Before you begin, make sure you have the name of the application as it appears on the Secondary Configuration Instance table under Configuration > Global > Dashboard.
On the Access Control > Realm Name
> Services, click Add....
Select the Dashboard service, then click Next.
Add or remove the applications you would like to appear on the Dashboard service for the realm.
Click Finish when you are done.
Use the following steps to add an application to a user's Dashboard.
On the Access Control > Realm Name
> Subjects, click the user identifier to edit the user's profile.
Under Services, click Dashboard.
Add the application beside the user name under the user's Assigned Dashboard list.
Click Save.
You may need to remove an application from user's Dashboard, but you don't want to entirely delete the user. The following steps walk you through removing an application from a user's Dashboard.
On the Access Control > Realm Name
> Subjects, click the user identifier to edit the user's profile.
Under Services, click Dashboard.
Delete the application beside the user name under the user's Assigned Dashboard list.
Click Save.
This chapter addresses how to set up and manage SAML 2.0 SSO for single sign on and single log out across resources belonging to organizations participating in a circle of trust.
SAML 2.0 SSO is part of federated access management. Federation lets access management cross organizational boundaries. Federation helps organizations share identities and services without giving away their identity information, or the services they provide.
To bridge heterogeneous systems, federation requires interoperability, and thus depends on standards for orchestrating interaction and exchanging information between providers. OpenAM federation relies on standards such as Security Assertion Markup Language (SAML) 2.0. SAML 2.0 describes the messages, how they are relayed, how they are exchanged, and common use cases.
To achieve SAML 2.0 SSO, OpenAM separates identity providers from service providers, lets you include them them in a circle of trust, and has you configure how the providers in the circle of trust interact.
An identity provider stores and serves identity profiles, and handles authentication.
A service provider offers services that access protected resources, and handles authorization.
A circle of trust groups at least one identity provider and at least one service provider who agree to share authentication information, with assertions about authenticated users that let service providers make authorization decisions.
Providers in a circle of trust share metadata, configuration information that federation partners require to access each others' services.
SAML 2.0 SSO maps attributes from accounts at the identity provider to attributes on accounts at the service provider. The identity provider makes assertions to the service provider, for example to attest that a user has authenticated with the identity provider. The service provider then consumes assertions from the identity provider to make authorization decisions, for example to let an authenticated user complete a purchase that gets charged to the user's account at the identity provider.
In federation deployments where not all providers support SAML 2.0, OpenAM can act as a multi-protocol hub, translating for providers who rely on other and older standards such as SAML 1.x, Liberty Alliance Project frameworks, and WS-Federation (for integration with Active Directory Federation Services, for example).
Before you set up SAML 2.0 SSO in OpenAM, you must:
Know which providers participate in the circle of trust.
Know how your OpenAM installations act as identity providers, or service providers.
Agree with other providers on a synchronized clock or time service to share for provider systems.
Processing messages you exchange requires synchronized time keeping.
For identity information exchanged with other participants in a circle of trust, define how to map user attributes you share. Your user profile attribute names map to user profile attribute names at other providers.
For example, if you exchange user identifiers with your partners, and
you call it uid whereas another partner calls it
userid, then you map your uid to
your partner's userid.
Import the keys used to sign assertions into the JKS key store in your OpenAM configuration directory. You can use the Java keytool command.
The OpenAM configuration key store is located at the top level of
the configuration directory, such as
$HOME/openam/keystore.jks. The password,
stored in $HOME/openam/.keypass, is
changeit by default. Also by default the only key
available is for a self-signed certificate (alias: test) installed with
OpenAM.
During set up, you must share metadata for providers that you host with other providers in the circle of trust. You must also configure remote providers, connecting to other providers by importing their metadata.
In OpenAM terms, a hosted provider is one served by the current OpenAM server, whereas a remote provider is one hosted elsewhere.
On the OpenAM console Common Tasks page, click Create Hosted Identity Provider.
Unless you already have metadata for the provider, accept the Name for this identity provider in the field provided, or provide your own unique identifier.
The default name is the URL to the current server which hosts the identity provider.
Select the Signing Key you imported into the OpenAM key store.
Either add the provider to the circle of trust you already created, or select Add to new and provide a New Circle of Trust name.
For the attributes you share, map service provider attribute names (Name in Assertion), to user profile names from your identity repository (Local Attribute Name).
Click Configure to save your configuration.
Export the XML-based metadata from your provider to share with other providers in your circle of trust.
$ curl -o metadata.xml http://www.idp.example:8080/openam/saml2/jsp/exportmetadata.jsp?entityid= http://www.idp.example:8080/openam&realm=/realm-name
When you have configured only the top-level realm,
/, you can omit the query string.
Alternatively, provide the URL, to other providers so they can load the metadata.
On the OpenAM console Common Tasks page, click Create Hosted Service Provider.
Unless you already have metadata for the provider, accept the Name for this service provider in the field provided, or provide your own unique identifier.
The default name is the URL to the current server which hosts the service provider.
Either add the provider to the circle of trust you already created, or select Add to new and provide a New Circle of Trust name.
If the identity provider has not already mapped the attributes you share, map identity provider attribute names (Name in Assertion), to user profile names from your identity repository (Local Attribute Name).
Click Configure to save your configuration.
Export the XML-based metadata from your provider to share with other providers in your circle of trust.
$ curl -o metadata.xml http://www.sp.example:8080/openam/saml2/jsp/exportmetadata.jsp?entityid= http://www.sp.example:8080/openam&realm=/realm-name
When you have configured only the top-level realm,
/, you can omit the query string.
Alternatively, provide the URL, to other providers so they can load the metadata.
Obtain the identity provider metadata, or the URL where you can obtain it.
On the OpenAM console Common Tasks page, click Register Remote Identity Provider.
Provide the identity provider metadata or link to obtain metadata.
Either add the provider to the circle of trust you already created, or select Add to new and provide a New Circle of Trust name.
Click Configure to save your configuration.
Obtain the service provider metadata, or the URL where you can obtain it.
On the OpenAM console Common Tasks page, click Register Remote Service Provider.
Provide the identity provider metadata or link to obtain metadata.
If the identity provider has not already mapped the attributes you share, map identity provider attribute names (Name in Assertion), to user profile names from your identity repository (Local Attribute Name).
Either add the provider to the circle of trust you already created, or select Add to new and provide a New Circle of Trust name.
Click Configure to save your configuration.
When your organization acts as the identity provider, and you want quickly to enable service providers to federate their services with yours, you can provide them with a fedlet. A fedlet is a small Java or .NET web application that can act as a service provider for a specific identity provider without requiring that you install all of OpenAM.
Fedlets support the following SAML 2.0 features.
| SAML 2.0 Feature | Java Fedlet | .NET Fedlet |
|---|---|---|
| IDP & SP-initiated Single Sign-On (HTTP Artifact) | Supported | Supported |
| IDP & SP-initiated Single Sign-On (HTTP POST) | Supported | Supported |
| IDP & SP-initiated Single Logout (HTTP POST) | Supported | Supported |
| IDP & SP-initiated Single Logout (HTTP Redirect) | Supported | Supported |
| Sign Requests & Responses | Supported | Supported |
| Encrypt Assertion, Attribute, & NameID Elements | Supported | Supported |
| Export SP Metadata | Supported | Supported |
| Attribute Queries | Supported | Supported |
| XACML Requests | Supported | Not supported |
| Multiple IDPs | Supported | Supported |
| External IDP Discovery Service | Supported | Supported |
| Bundled IDP Reader Service for Discovery | Supported | Not supported |
For more information on using fedlets, see Using Fedlets in Java Web Applications and Using Fedlets in .NET Applications in the Developer's Guide.
The following procedure describes how to create a Java Fedlet.
If you have not done so already, set up your identity provider.
Enter the URL where the service provider will deploy the fedlet you create, and name the fedlet. If you create multiple fedlets, use the URL as a unique name that shows who has deployed the fedlet.
For the attributes you share, map service provider attribute names (Name in Assertion), to user profile names from your identity repository (Local Attribute Name).
Click Create to generate the Fedlet.zip
file under the OpenAM configuration directory, such as
$HOME/openam/myfedlets/httpwwwexamplecom80myapp/Fedlet.zip.
Give the Fedlet.zip file to the service
provider for deployment.
When your circle of trust includes multiple identity providers, then service providers must discover which identity provider corresponds to a request. You can deploy the identity provider discovery service for this purpose as a separate web application.
Browsers only send cookies for the originating domain. Therefore
when a browser accesses the service provider in the www.sp.example
domain, the service provider has no way of knowing whether the user has
perhaps already authenticated at www.this-idp.example or at
www.that-idp.example. The providers therefore host an identity
provider discovery service in a common domain, such as
www.disco.example, and use that service to discover where
the user logged in. The identity provider discover service essentially
writes and reads cookies from the common domain. The providers configure
their circle of trust to use the identity provider discovery service
as part of SAML 2.0 federation.
Deploying the identity provider discovery service involves the following stages.
Create the .war file for the discovery service.
Deploy the .war file into your web application container.
Configure the discovery service.
Add the identity provider discovery service endpoints for writing cookies to and reading cookies from the common domain to the circle of trust configurations for the providers.
Share metadata between identity providers and the service provider.
Before you start, have access to metadata for the identity and service providers in the circle of trust.
Unpack the opensso.war file into a temporary
directory.
$ mkdir /tmp/disco ; cd /tmp/disco $ jar xf ~/Downloads/opensso/deployable-war/opensso.war
Create the disco.war file.
$ cd ~/Downloads/opensso/deployable-war $ sh createwar.sh --staging /tmp/disco --type idpdiscovery --warfile disco.war WAR file was created.
How you deploy the discovery service .war file depends on your web application container. The procedure in this section shows how to deploy on Apache Tomcat.
Put the disco.war you created in the Tomcat
webapps/ directory.
$ mv disco.war /path/to/tomcat/webapps/
Access the configuration screen through your browser.
In this example, Apache Tomcat listens for HTTP requests on
idp.disco.example:8080, and Tomcat has unpacked the
application under /disco, so the URL is
http://idp.disco.example:8080/disco, which redirects to
Configurator.jsp.
Configure the identity provider discovery service.
Hints for discovery service configuration parameters follow.
The discovery service logs to flat files in this directory.
Default is error. Other options include
error, warning,
message, and off.
Set this to message in order to see the
service working when you run your initial tests.
Set to PERSISTENT if you have configured OpenAM to use persistent cookies, meaning single sign on cookies that can continue to be valid after the browser is closed.
The cookie domain is the common cookie domain used in your circle
of trust for identity provider discovery, in this case
www.disco.example.
Set this to true if clients should only return cookies when a secure connection is used.
Leave this true unless your OpenAM installation requires that you do not encode cookies. Normally cookies are encoded such that cookies remain valid in HTTP.
Set to true to use HTTPOnly cookies if needed to help prevent third-party programs and scripts from accessing the cookies.
Restrict permissions to the discovery service configuration file in
$HOME/libIDPDiscoveryConfig.properties, where $HOME
corresponds to the user who runs the web container where you deployed the
service.
Each provider has a circle of trust including itself. You configure each of these circles of trust to use the identity provider discovery service as described in the following steps.
On the service provider console, login as OpenAM Administrator.
On the service provider console, under Federation > Circle of
Trust Configuration > Circle of Trust Name
add SAML2 Writer and Reader Service URLs for the identity provider
discovery service endpoints, and Save your work.
In this example, the writer URL is
http://idp.disco.example:8080/disco/saml2writer, and the
reader URL is
http://idp.disco.example:8080/disco/saml2reader.
On each identity provider console, login as OpenAM Administrator.
On the identity provider console, under Federation > Circle of
Trust Configuration > Circle of Trust Name
also add SAML2 Writer and Reader Service URLs for the identity provider
discovery service endpoints, and Save your work.
Before performing these steps, install the administration tools for each provider as described in To Set Up Administration Tools. The administration tools include the ssoadm tool that you need to export metadata.
On each identity provider console, register the service provider as a remote service provider adding to the circle of trust you configured to use the identity provider discovery service.
The URL to the service provider metadata is something like
http://www.sp.example:8080/openam/saml2/jsp/exportmetadata.jsp.
Obtain metadata for each identity provider.
$ ssh www.this-idp.example $ cd /path/to/openam-tools/admin/openam/bin $ ./ssoadm create-metadata-templ -y "http://www.this-idp.example:8080/openam" -u amadmin -f /tmp/pwd.txt -i /idp -m this-standard.xml -x this-extended.xml Hosted entity configuration was written to this-extended.xml. Hosted entity descriptor was written to this-standard.xml. $ ssh www.that-idp.example $ cd /path/to/openam-tools/admin/openam/bin $ ./ssoadm create-metadata-templ -y "http://www.that-idp.example:8080/openam" -u amadmin -f /tmp/pwd.txt -i /idp -m that-standard.xml -x that-extended.xml Hosted entity configuration was written to that-extended.xml. Hosted entity descriptor was written to that-standard.xml.
For each identity provider extended metadata file, change the value
of the hosted attribute to 0,
meaning the identity provider is remote.
On the service provider, add the identity providers to the circle of trust using the identity provider metadata.
$ ssh www.sp.example $ cd /path/to/openam-tools/admin/openam/bin $ ./ssoadm import-entity -t discocot -m ~/Downloads/this-standard.xml -x ~/Downloads/this-extended.xml -u amadmin -f /tmp/pwd.txt Import file, /Users/mark/Downloads/this-standard.xml. Import file, /Users/mark/Downloads/this-extended.xml. $ ./ssoadm import-entity -t discocot -m ~/Downloads/that-standard.xml -x ~/Downloads/that-extended.xml -u amadmin -f /tmp/pwd.txt Import file, /Users/mark/Downloads/that-standard.xml. Import file, /Users/mark/Downloads/that-extended.xml.
Test your work by using the Federation Connectivity Test that you start from the service provider console under Common Tasks > Test Federation Connectivity.
When the test is done, you can see messages from the
CookieWriterServlet in the
libIDPDiscovery log file where you set up
logging when you configured the identity provider discovery
service, such as /tmp/debug/libIDPDiscovery.
Output generated during a test follows, with some lines folded to fit
on the printed page.
08/08/2012 11:43:38:341 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieUtils.init : idpDiscoveryOnlyWar=true 08/08/2012 11:43:38:341 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet Initializing... 08/08/2012 11:43:38:341 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Preferred Cookie Name is _saml_idp 08/08/2012 11:43:38:341 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: URL Scheme is null, set to https. 08/08/2012 11:43:38:341 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Preferred IDP Cookie Not found 08/08/2012 11:43:38:342 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Cookie Type is PERSISTENT 08/08/2012 11:43:38:342 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Cookie value is aHR0cDovL3d3dy50aGF0LWlkcC5jb206ODA4MC9vcGVuYW0= 08/08/2012 11:43:38:342 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Preferred Cookie Name _saml_idp 08/08/2012 11:43:38:343 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Redirect to http://www.that-idp.example:8080/openam/SSORedirect/metaAlias/idp?resInfoID= s28bc4db004f1365d78d07d69846c54a3c850fe801 08/08/2012 11:43:46:957 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Preferred Cookie Name is _saml_idp 08/08/2012 11:43:46:957 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieUtils:cookieValue=aHR0cDovL3d3dy50aGF0LWlkcC5jb206ODA4MC9vcGVuYW0=, result=aHR0cDovL3d3dy50aGF0LWlkcC5jb206ODA4MC9vcGVuYW0= 08/08/2012 11:43:46:957 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Cookie Type is PERSISTENT 08/08/2012 11:43:46:957 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Cookie value is aHR0cDovL3d3dy50aGF0LWlkcC5jb206ODA4MC9vcGVuYW0= 08/08/2012 11:43:46:957 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Preferred Cookie Name _saml_idp 08/08/2012 11:43:46:957 AM CEST: Thread[http-bio-8080-exec-4,5,main] CookieWriterServlet.doGetPost: Redirect to http://www.that-idp.example:8080/openam/SSORedirect/metaAlias/idp?resInfoID= s2ce9c465cf39c96f31e1dcf009cf9943695d82901
Once you have set up an identity provider, you can configure it
through the OpenAM console under Federation > Entity Providers >
Provider Name.
Use the following hints to adjust settings on the Assertion Content tab page.
Specifies what parts of messages the identity provider requires the service provider to sign digitally.
When selected, the service provider must encrypt NameID elements.
Specifies aliases for certificates in the OpenAM key store that are used to handle digital signatures, and to handle encrypted messages.
Specifies the supported name identifiers for users that are shared between providers for single sign on. If no name identifier is specified when initiating single sign on, then the identity provider uses the first one in the list.
Maps name identifier formats to user profile attributes. The
persistent and transient name
identifiers need not be mapped.
Specifies a class that implements the
IDPAuthnContextMapper interface and sets up the
authentication context.
Specifies the authentication context used if no authentication context specified in the request.
Specifies the supported authentication contexts, where the Key and Value can specify a corresponding OpenAM authentication method, and the Level corresponds to an authentication module authentication level.
Grace period in seconds for the NotBefore time
in assertions.
Validity in seconds of an assertion.
Use the following hints to adjust settings on the Assertion Processing tab page.
Specifies a class that implements the attribute mapping.
Maps SAML attributes to user profile attributes.
Specifies a class that implements AccountMapper
to map remote users to local user profiles.
URL where users are redirected to authenticate.
URL to which to send an HTTP POST including all cookies when
receiving a logout request. To add a user session property as a POST
parameter, include it in the URL query string as a
appsessionproperty parameter.
Use the following hints to adjust settings on the Services tab page.
Used to locate the providers entity identifier, specified as
[/, where neither
realm-name]*/provider-namerealm-name nor
provider-name can contain slash characters
(/). For example:
/realm/sub-realm/idp.
Specifies the end point to handle artifact resolution. The Index is a unique number identifier for the end point.
Specifies the end points to handle single logout, depending on the SAML binding selected.
Specifies the end points to handle name identifiers, depending on the SAML binding selected.
Specifies the end points to handle single sign on.
Use the following hints to adjust settings on the Advanced tab page.
Specifies the end point to handle Secure Attribute Exchange requests.
Specifies how to handle encryption for Secure Attribute Exchange operations.
Specifies the class that finds a valid session from an HTTP servlet request to an identity provider with a SAML Enhanced Client or Proxy profile.
When enabled, the identity provider notifies service providers to log the user out when a session expires.
Specifies a class that finds the preferred identity provider to handle a proxied authentication request.
Specifies a JSP that presents the list of identity providers to the user.
When enabled, apply the finder for all remote service providers.
Once you have set up a service provider, you can configure it
through the OpenAM console under Federation > Entity Providers >
Provider Name.
Use the following hints to adjust settings on the Assertion Content tab page.
Specifies what parts of messages the service provider requires the identity provider to sign digitally.
The identity provider must encrypt selected elements.
Specifies aliases for certificates in the OpenAM key store that are used to handle digital signatures, and to handle encrypted messages.
Specifies the supported name identifiers for users that are shared between providers for single sign on. If no name identifier is specified when initiating single sign on, then the service provider uses the first one in the list supported by the identity provider.
When enabled, the NameID Format in the authentication response is
urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified,
and the Account Mapper has identified the local user, the service provider
does not persist federation information in the user profile.
Specifies a class that implements the
SPAuthnContextMapper interface and sets up the
authentication context.
Specifies the authentication context used if no authentication context specified in the request.
Specifies the supported authentication contexts. The Level corresponds to an authentication module authentication level.
How the authentication context in the assertion response must compare to the supported contexts.
Use the following hints to adjust settings on the Assertion Processing tab page.
Specifies a class that implements the attribute mapping.
Maps SAML attributes to user profile attributes.
When enabled, automatically federate user's accounts at different providers based on the specified profile attribute.
Specifies the user profile attribute to match accounts at different providers.
Specifies a class that implements AccountMapper
to map remote users to local user profiles.
When selected, fall back to using the name identifier from the assertion to find the user.
Specifies the user profile to which to map all identity provider users when sending transient name identifiers.
Specifies the local login URL.
Specifies a URL to which the user is redirected after authentication but before the original URL requested.
Specifies the URL to which to send an HTTP POST including all
cookies when receiving a logout request. To add a user session property
as a POST parameter, include it in the URL query string as a
appsessionproperty parameter.
Use the following hints to adjust settings on the Services tab page.
Used to locate the providers entity identifier, specified as
[/, where neither
realm-name]*/provider-namerealm-name nor
provider-name can contain slash characters
(/). For example:
/realm/sub-realm/sp.
Specifies the end points to handle single logout, depending on the SAML binding selected.
Specifies the end points to handle name identifiers, depending on the SAML binding selected.
Specifies the end points to consume assertions, with Index corresponding to the index of the URL in the standard metadata.
Use the following hints to adjust settings on the Advanced tab page.
Specifies the end point to handle Secure Attribute Exchange requests.
Specifies the end point of the service provider that can handle global logout requests.
Specifies how to handle encryption for Secure Attribute Exchange operations.
Specifies a class that returns a list of preferred identity providers trusted by the SAML Enhanced Client or Proxy profile.
Specifies a URI reference used to retrieve the complete identity
provider list if the IDPList element is not
complete.
Specifies a list of identity providers for the SAML Enhanced Client or Proxy to contact, used by the default implementation of the IDP Finder.
When enabled, allow proxied authentication for this service provider.
When enabled, use introductions to find the proxy identity provider.
Specifies the maximum number of proxy identity providers.
Specifies a list of URIs identifying preferred proxy identity providers.
Once you have set up a circle of trust, you can configure it
through the OpenAM console under Federation > Circle of Trust >
Circle of Trust Name.
String to refer to the circle of trust.
Short description of the circle of trust.
Liberty Identity Federation Framework service that writes identity
provider entity identifiers to Common Domain cookies after successful
authentication, used in identity provider discovery. Example:
http://www.disco.example:8080/openam/idffwriter.
Liberty Identity Federation Framework service that reads identity
provider entity identifiers from Common Domain cookies, used in identity
provider discovery. Example:
http://www.disco.example:8080/openam/transfer.
SAML 2.0 service that writes identity provider entity identifiers
to Common Domain cookies after successful authentication, used in identity
provider discovery. Example:
http://www.disco.example:8080/openam/saml2writer.
SAML 2.0 service that reads identity provider entity identifiers
from Common Domain cookies, used in identity provider discovery. Example:
http://www.disco.example:8080/openam/saml2reader.
Whether this circle of trust is operational.
Name of the realm participating in this circle of trust.
Known hosted and remote identity and service providers participating in this circle of trust.
OpenAM can serve as the identity provider when you use Google Apps as a service provider, allowing users to have single sign-on with their Google Apps account.
In order to use this service, you must have a Google Apps account for
at least one of your domains, such as example.com.
If you have not yet done so, set up OpenAM as described in Procedure 11.1, “To Create a Hosted Identity Provider”, using a signing certificate that is needed by Google Apps.
See the procedure To Change the Signing Key for Federation for details regarding the signing certificate.
On the OpenAM console Common Tasks page, click Configure Google Apps.
On the first Configure Google Apps for Single Sign-On page, add your
domain name(s) such as example.com to the list, and then
click Create.
On the second Configure Google Apps for Single Sign-On page, save
the OpenAM verification certificate to a text file, such as
OpenAM.pem.
Follow the instructions under To Enable Access to the Google Apps API before clicking Finish.
Access the Google Apps administration page for the first of your domains in a new browser tab or window.
Login as Google Apps administrator.
Select Enable Single Sign-On.
Copy the URLs from the OpenAM page into the Google Apps setup screen.
Upload the certificate file you saved such as
OpenAM.pem as the Google Apps Verification
Certificate.
Select Use a domain specific issuer.
Save changes in Google Apps setup.
Repeat the steps above for each domain you have configured.
Click Finish to complete the process.
OpenAM can serve as the identity provider when you use Salesforce CRM as a service provider, allowing users to have single sign-on with their Salesforce CRM account.
In order to use this service, you must have Salesforce CRM accounts for your organization.
If you have not yet done so, set up OpenAM as described in Procedure 11.1, “To Create a Hosted Identity Provider”, using a signing certificate that is needed by Salesforce CRM.
See the procedure To Change the Signing Key for Federation for details regarding the signing certificate.
On the OpenAM console Common Tasks page, click Configure Salesforce CRM.
On the first Salesforce CRM Single Sign-On Configuration page, configure attribute mapping to associate the appropriate attribute from Salesforce CRM with the user profile attribute on your IDP.
For example, add a mapping for IDPEmail to
mail, and then click Create. In any case, make sure
the attribute mapper is sending the correct attribute to be used for
the federated identity.
On the second Salesforce CRM Single Sign-On Configuration page, follow the instructions below before clicking Finish.
In a new browser tab or window, login to Salesforce CRM with your administrator credentials.
Create an administrator account if none exists, yet.
If your users go directly to Salesforce to access services, then their single sign-on is SP-initiated from the Salesforce side. Salesforce provides a "My Domain" feature to facilitate SP-initiated single sign-on for desktop and device users.
When you have completed configuring Salesforce as a service
provider, users can then browse to your domain at Salesforce, such as
https://openam.my.salesforce.com, and be redirected to
OpenAM to authenticate before being redirected to Salesforce.
Select Administration Setup > Company Profile > My Domain.
Choose the domain name, and then register the domain.
Wait until the domain is ready for testing to proceed.
In Salesforce CRM, browse to Setup > Administration Setup > Single Sign-On Settings > Security Controls, and then click Edit for Single Sign-On Settings.
Select SAML Enabled.
Set the SAML Version to 2.0.
Copy the issuer name from the OpenAM page to the Issuer field on the Salesforce CRM page.
Save the OpenAM verification certificate to a text file, such as
OpenAM.pem.
Upload the certificate file as Identity Provider Certificate on the Salesforce CRM page.
For SAML User ID Type in Salesforce CRM, choose Assertion contains the Federation ID from the User object.
For SAML User Location in Salesforce CRM, choose User ID is in an Attribute element.
Copy the attribute name such as IDPEmail from
the OpenAM page to the Attribute Name field on the Salesforce CRM
page.
Leave the NameID Format field empty.
Select the Entity ID corresponding to the "My Domain" that you set up.
Save your work in Salesforce CRM.
Salesforce CRM displays a Salesforce Login URL.
Copy the Salesforce Login URL to the field provided on the OpenAM page.
Salesforce CRM displays a Salesforce.com Single Logout URL.
If you want to perform Global Logout when a user logs out of Salesforce, edit this form to include the OpenAM Logout URL here.
If you do not want to OpenAM to end the user's session when they log out of Salesforce, edit this for to leave this blank.
Click Download Metadata to download the Salesforce CRM SP metadata.
After you complete the configuration, you must import the SP metadata you download in this step.
In Salesforce CRM, browse to Administration Setup > Manage Users, and then click Users.
Add users as necessary, making sure the attribute chosen as the Federation ID matches the local attribute you mapped to the remote attribute in the previous page in OpenAM.
Click Finish to complete the process.
After you finish, import the metadata for Salesforce CRM as SP.
Browse in OpenAM console to the Federation tab.
If the remote SP entity for Salesforce CRM is already in the Entity Providers list, delete the existing configuration.
Click Import Entity..., and then use the Import Entity Provider page to import the Salesforce CRM metadata.
At this point, when a user browses to the Salesforce domain you set up, they should be redirected to OpenAM for authentication. Upon successful authentication, they should be logged in to Salesforce.
OpenAM SAML 2.0 Federation provides JSPs where you can direct users to do single sign-on (SSO) and single logout (SLO) across providers in a circle of trust. OpenAM has two JSPs for SSO and two JSPs for SLO, allowing you to initiate both processes either from the identity provider side, or from the service provider side.
SSO lets users sign in once and remain authenticated as they access services in the circle of trust.
SLO attempts to log a user out of all providers in the circle of trust.
The JSP pages are found under the context root where you deployed
OpenAM, in saml2/jsp/.
spSSOInit.jspUsed to initiate SSO from the service provider side, so call this
on the service provider not the identity provider. This is also mapped
to the endpoint spssoinit under the
context root.
Examples:
http://www.sp.example:8080/openam/saml2/jsp/spSSOInit.jsp,
http://www.sp.example:8080/openam/spssoinit
idpSSOInit.jspUsed to initiate SSO from the identity provider side, so call this
on the identity provider not the service provider. This is also mapped to
the endpoint idpssoinit under the
context root.
Examples:
http://www.idp.example:8080/openam/saml2/jsp/idpSSOInit.jsp,
http://www.idp.example:8080/openam/idpssoinit
spSingleLogoutInit.jspUsed to initiate SLO from the service provider side, so call this on the service provider not the identity provider.
Example:
http://www.sp.example:8080/sp/saml2/jsp/spSingleLogoutInit.jsp
idpSingleLogoutInit.jspUsed to initiate SLO from the identity provider side, so call this on the identity provider not the service provider.
Example:
http://www.idp.example:8080/idp/saml2/jsp/idpSingleLogoutInit.jsp
When you invoke these JSPs, there are several parameters to specify. Which parameters you can use depends on the JSP.
idpSSOInit.jsp ParametersmetaAlias(Required) Use this parameter to specify the local alias for the
provider, such as metaAlias=/myRealm/idp. This
parameter takes the format
/ as described in MetaAlias. You do not repeat the slash for
the top level realm, for example realm-name/provider-namemetaAlias=/idp.
spEntityID(Required) Use this parameter to indicate the remote service
provider. Make sure you URL encode the value. For example, specify
spEntityID=http://www.sp.example:8080/openam as
spEntityID=http%3A%2F%2Fwww.sp.example%3A8080%2Fopenam.
affiliationID(Optional) Use this parameter to specify a SAML affiliation identifier.
binding(Optional) Use this parameter to indicate what binding to use for the
operation. For example, specify binding=HTTP-POST to
use HTTP POST binding with a self-submitting form. In addition to
binding=HTTP-POST, you can also use
binding=HTTP-Artifact.
NameIDFormat(Optional) Use this parameter to specify a SAML Name Identifier
format identifier such as
urn:oasis:names:tc:SAML:2.0:nameid-format:persistent, or
urn:oasis:names:tc:SAML:2.0:nameid-format:transient.
RelayState(Optional) Use this parameter to specify where to redirect the user
when the process is complete. Make sure you URL encode the value. For
example, RelayState=http%3A%2F%2Fopenam.forgerock.org
takes the user to http://openam.forgerock.org.
RelayStateAlias(Optional) Use this parameter to specify the parameter to use as the
RelayState. For example, if your query string has
target=http%3A%2F%2Fopenam.forgerock.org&RelayStateAlias=target,
this is like setting
RelayState=http%3A%2F%2Fopenam.forgerock.org.
spSSOInit.jsp ParametersidpEntityID(Required) Use this parameter to indicate the remote identity
provider. Make sure you URL encode the value. For example, specify
idpEntityID=http://www.idp.example:8080/openam as
idpEntityID=http%3A%2F%2Fwww.idp.example%3A8080%2Fopenam.
metaAlias(Required) Use this parameter to specify the local alias for the
provider, such as metaAlias=/myRealm/sp. This parameter
takes the format / as described in MetaAlias. You do not repeat the slash for the
top level realm, realm-name/provider-namemetaAlias=/sp.
affiliationID(Optional) Use this parameter to specify a SAML affiliation identifier.
AllowCreate(Optional) Use this parameter to indicate whether the identity
provider can create a new identifier for the principal if none exists
(true) or not (false).
AssertionConsumerServiceIndex(Optional) Use this parameter to specify an integer that indicates the location to which the Response message should be returned to the requester.
AuthComparison(Optional) Use this parameter to specify a comparison method to
evaluate the requested context classes or statements. OpenAM accepts the
following values: better, exact,
maximum, and minimum.
AuthnContextClassRef(Optional) Use this parameter to specify authentication context
class references. Separate multiple values with pipe characters
(|).
AuthnContextDeclRef(Optional) Use this parameter to specify authentication context
declaration references. Separate multiple values with pipe characters
(|).
AuthLevel(Optional) Use this parameter to specify the authentication level of the authentication context that OpenAM should use to authenticate the user.
binding(Optional) Use this parameter to indicate what binding to use for the
operation. For example, specify binding=HTTP-POST to
use HTTP POST binding with a self-submitting form. In addition to
binding=HTTP-POST, you can also use
binding=HTTP-Artifact.
Destination(Optional) Use this parameter to specify a URI Reference indicating the address to which the request is sent.
ForceAuthN(Optional) Use this parameter to indicate whether the identity
provider should force authentication (true) or can
reuse existing security contexts (false).
isPassive(Optional) Use this parameter to indicate whether the identity
provider should authenticate passively (true) or not
(false).
NameIDFormat(Optional) Use this parameter to specify a SAML Name Identifier
format identifier such as
urn:oasis:names:tc:SAML:2.0:nameid-format:persistent,
or urn:oasis:names:tc:SAML:2.0:nameid-format:transient.
RelayState(Optional) Use this parameter to specify where to redirect the user
when the process is complete. Make sure you URL encode the value. For
example, RelayState=http%3A%2F%2Fopenam.forgerock.org
takes the user to http://openam.forgerock.org.
RelayStateAlias(Optional) Use this parameter to specify the parameter to use as the
RelayState. For example, if your query string has
target=http%3A%2F%2Fopenam.forgerock.org&RelayStateAlias=target,
this is like setting
RelayState=http%3A%2F%2Fopenam.forgerock.org.
reqBinding(Optional) Use this parameter to indicate what binding to use for the
authentication request. Valid values in include
urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect
(default) and
urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST.
sunamcompositeadvice(Optional) Use this parameter to specify a URL encoded XML blob that
specifies the authentication level advice. For example, the following XML
indicates a requested authentication level of 1. Notice the required
: before the 1.
<Advice> <AttributeValuePair> <Attribute name="AuthLevelConditionAdvice"/> <Value>/:1</Value> </AttributeValuePair> </Advice>
idpSingleLogoutInit.jsp Parametersbinding(Required) Use this parameter to indicate what binding to use for the
operation. For example, specify binding=HTTP-POST to
use HTTP POST binding with a self-submitting form rather than the default
HTTP redirect binding. In addition to binding=HTTP-POST,
you can also use binding=HTTP-Artifact.
Consent(Optional) Use this parameter to specify a URI that is a SAML Consent Identifier.
Destination(Optional) Use this parameter to specify a URI Reference indicating the address to which the request is sent.
Extension(Optional) Use this parameter to specify a list of Extensions as string objects.
goto(Optional) Use this parameter to specify where to redirect the user
when the process is complete. RelayState takes
precedence over this parameter.
logoutAll(Optional) Use this parameter to specify that the identity provider should send single logout requests to service providers without indicating a session index.
RelayState(Optional) Use this parameter to specify where to redirect the user
when the process is complete. Make sure you URL encode the value. For
example, RelayState=http%3A%2F%2Fopenam.forgerock.org
takes the user to http://openam.forgerock.org.
spSingleLogoutInit.jsp Parametersbinding(Required) Use this parameter to indicate what binding to use for the
operation. For example, specify binding=HTTP-POST to
use HTTP POST binding with a self-submitting form rather than the default
HTTP redirect binding. In addition to binding=HTTP-POST,
you can also use binding=HTTP-Artifact.
idpEntityID(Required for Fedlets) Use this parameter to indicate the remote
identity provider. If the binding is not set, then
OpenAM uses this parameter to find the default binding. Make sure you URL
encode the value. For example, specify
idpEntityID=http://www.sp.example:8080/openam as
idpEntityID=http%3A%2F%2Fwww.idp.example%3A8080%2Fopenam.
NameIDValue(Required for Fedlets) Use this parameter to indicate the SAML Name Identifier for the user.
SessionIndex(Required for Fedlets) Use this parameter to indicate the
sessionIndex of the user session to terminate.
Consent(Optional) Use this parameter to specify a URI that is a SAML Consent Identifier.
Destination(Optional) Use this parameter to specify a URI Reference indicating the address to which the request is sent.
Extension(Optional) Use this parameter to specify a list of Extensions as string objects.
goto(Optional) Use this parameter to specify where to redirect the user
when the process is complete. RelayState takes
precedence over this parameter.
RelayState(Optional) Use this parameter to specify where to redirect the user
when the process is complete. Make sure you URL encode the value. For
example, RelayState=http%3A%2F%2Fopenam.forgerock.org
takes the user to http://openam.forgerock.org.
spEntityID(Optional, for Fedlets) Use this parameter to indicate the Fedlet entity ID. When missing, OpenAM uses the first entity ID in the metadata.
The following URL takes the user from the service provider side to authenticate at the identity provider and then come back to the end user profile page at the service provider after successful SSO. Lines are folded to show you the query string parameters.
http://www.sp.example:8080/openam/saml2/jsp/spSSOInit.jsp?metaAlias=/sp &idpEntityID=http%3A%2F%2Fwww.idp.example%3A8080%2Fopenam &RelayState=http%3A%2F%2Fwww.sp.example%3A8080%2Fopenam%2Fidm%2FEndUser
The following URL initiates SLO from the service provider side,
leaving the user at http://openam.forgerock.org.
http://www.sp.example:8080/sp/saml2/jsp/spSingleLogoutInit.jsp?metaAlias=/sp &idpEntityID=http%3A%2F%2Fdesktop.example.example%3A8080%2Fopenam &RelayState=http%3A%2F%2Fopenam.forgerock.org
During SSO log in, OpenAM presents users with a self-submitting form when access has been validated. This page is otherwise blank. If you want to present users with something to indicate that the operation is in progress, then customize the necessary templates.
Modify the templates to add a clue that SSO is in progress, such as an image.
Edit the templates found in OpenAM sources, saml2login.template and saml2loginwithrelay.template.
When you add an image or other presentation element, make sure that you retain the form and JavaScript as is. Also, as the files are templates, what you add must be static HTML.
Unpack openam-server-10.2.0-SNAPSHOT.war, and add your modified template files
under WEB-INF/classes/ where you unpacked the .war.
Also include any images you reference in the page.
Pack up your custom version of OpenAM, and then deploy it in your web container.
The SAML 2.0 Enhanced Client or Proxy (ECP) profile is intended for use when accessing services over devices like simple phones, medical devices, and set-top boxes that lack the capabilities needed to use the more widely used SAML 2.0 Web Browser SSO profile.
The ECP knows which identity provider to contact for the user, and is able to use the reverse SOAP (PAOS) SAML 2.0 binding for the authentication request and response. The PAOS binding uses HTTP and SOAP headers to pass information about processing SOAP requests and responses, starting with a PAOS HTTP header that the ECP sends in its initial request to the server. The PAOS messages continue with a SOAP authentication request in the server's HTTP response to the ECP's request for a resource, followed by a SOAP response in an HTTP request from the ECP.
An enhanced client, such as a browser with a plugin or an extension, can handle these communications on its own. An enhanced proxy is an HTTP server such as a WAP gateway that can support the ECP profile on behalf of client applications.
OpenAM supports the SAML 2.0 ECP profile on the server side for identity providers and service providers. You must build the ECP.
By default an OpenAM identity provider uses the
com.sun.identity.saml2.plugins.DefaultIDPECPSessionMapper
class to find a user session for requests to the IDP from the ECP. The
default session mapper uses OpenAM cookies as it would for any other client
application. If for some reason you must change the mapping after writing
and installing your own session mapper, you can change the class under
Federation > Entity Providers > idp-name
> IDP > Advanced > ECP Configuration.
By default an OpenAM service provider uses the
com.sun.identity.saml2.plugins.ECPIDPFinder class to
return identity providers from the list under Federation > Entity
Providers > sp-name > SP > Advanced
> ECP Configuration > Request IDP List. You must populate the list
with identity provider entity IDs.
The endpoint for the ECP to contact on the OpenAM service provider is
/SPECP as in
http://www.sp.example:8080/openam/SPECP. The ECP provides
two query string parameters to identify the service provider and to specify
the URL of the resource to access.
metaAliasThis specifies the service provider, by default
metaAlias=/,
as described in MetaAlias.realm-name/sp
RelayStateThis specifies the resource the client aims to access such as
RelayState=http%3A%2F%2Fopenam.forgerock.org%2Findex.html.
For example, the URL to access the service provider and finally
the resource at http://openam.forgerock.org/index.html
could be
http://www.sp.example:8080/openam/SPECP?metaAlias=/sp&RelayState=http%3A%2F%2Fopenam.forgerock.org%2Findex.html.
Identity providers and service providers must be able to communicate about users. Yet in some cases the identity provider can choose to communicate a minimum of information about an authenticated user, with no user account maintained on the service provider side. In other cases the identity provider and service provider can choose to link user accounts in a persistent way, in a more permanent way, or even in automatic fashion by using some shared value in the user's profiles such as an email address or by dynamically creating accounts on the service provider when necessary. OpenAM supports all these alternatives.
OpenAM allows you to link accounts using transient name identifiers, where the identity provider shares a temporary identifier with the service provider for the duration of the user session. Nothing is written to the user profile.
Transient identifiers are useful where the service is anonymous, and all users have similar access on the service provider side.
To use transient name identifiers, specify the name ID format
urn:oasis:names:tc:SAML:2.0:nameid-format:transient when
initiating single sign on.
The examples below work in an environment where the identity provider
is www.idp.example and the service provider is
www.sp.example. Both providers have deployed OpenAM on port
8080 under deployment URI /openam.
To initiate single sign on from the service provider, access the following URL with at least the query parameters shown.
http://www.sp.example:8080/openam/saml2/jsp/spSSOInit.jsp? idpEntityID=http%3A%2F%2Fwww.idp.example%3A8080%2Fopenam &metaAlias=/sp &NameIDFormat=urn:oasis:names:tc:SAML:2.0:nameid-format:transient
For a complete list of query parameters, see spSSOInit.jsp Parameters.
To initiate single sign on from the identity provider, access the following URL with at least the query parameters shown.
http://www.idp.example:8080/openam/saml2/jsp/idpSSOInit.jsp? spEntityID=http%3A%2F%2Fwww.sp.example%3A8080%2Fopenam &metaAlias=/idp &NameIDFormat=urn:oasis:names:tc:SAML:2.0:nameid-format:transient
For a complete list of query parameters, see idpSSOInit.jsp Parameters.
The accounts are only linked for the duration of the session. Once the user logs out for example the accounts are no longer linked.
OpenAM lets you use persistent pseudonym identifiers to federate user identities, linking accounts on the identity provider and service provider with a SAML persistent identifier.
Persistent identifiers are useful for establishing links between otherwise unrelated accounts.
The examples below work in an environment where the identity provider
is www.idp.example and the service provider is
www.sp.example. Both providers have deployed OpenAM on port
8080 under deployment URI /openam.
To initiate single sign on from the service provider, access the following URL with at least the query parameters shown.
http://www.sp.example:8080/openam/saml2/jsp/spSSOInit.jsp? idpEntityID=http%3A%2F%2Fwww.idp.example%3A8080%2Fopenam &metaAlias=/sp &NameIDFormat=urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
For a complete list of query parameters, see spSSOInit.jsp Parameters.
To initiate single sign on from the identity provider, access the following URL with at least the query parameters shown.
http://www.idp.example:8080/openam/saml2/jsp/idpSSOInit.jsp? spEntityID=http%3A%2F%2Fwww.sp.example%3A8080%2Fopenam &metaAlias=/idp &NameIDFormat=urn:oasis:names:tc:SAML:2.0:nameid-format:persistent
For a complete list of query parameters, see idpSSOInit.jsp Parameters.
On successful login, the accounts are persistently linked, with persistent identifiers stored in the user's accounts on the identity provider and the service provider.
OpenAM implements the SAML 2.0 Name Identifier Management profile, allowing you to change a persistent identifier that has been set to federate accounts, and also to terminate federation for an account.
When user accounts are stored in an LDAP directory server, name
identifier information is stored on the
sun-fm-saml2-nameid-info and
sun-fm-saml2-nameid-infokey attributes of a user's
entry.[8] You can retrieve the name identifier value
by checking the value of
sun-fm-saml2-nameid-infokey.
For example, if the user's entry in the directory shows
sun-fm-saml2-nameid-infokey:
http://www.idp.example:8080/openam|http://www.sp.example:8080/openam|
XyfFEsr6Vixbnt0BSqIglLFMGjR2, then the name identifier is
XyfFEsr6Vixbnt0BSqIglLFMGjR2.
You can use this identifier to initiate a change request from the service provider as in the following example.
http://www.sp.example:8080/openam/saml2/jsp/spMNIRequestInit.jsp? idpEntityID=http%3A%2F%2Fwww.idp.example%3A8080%2Fopenam &metaAlias=/sp &requestType=NewID &IDPProvidedID=XyfFEsr6Vixbnt0BSqIglLFMGjR2
You can also initiate the change request from the identity provider as in the following example.
http://www.idp.example:8080/openam/saml2/jsp/idpMNIRequestInit.jsp? spEntityID=http%3A%2F%2Fwww.sp.example%3A8080%2Fopenam &metaAlias=/idp &requestType=NewID &SPProvidedID=XyfFEsr6Vixbnt0BSqIglLFMGjR2
idpMNIRequestInit.jsp ParametersspEntityID(Required) Use this parameter to indicate the remote service
provider. Make sure you URL encode the value. For example, specify
spEntityID=http://www.sp.example:8080/openam as
spEntityID=http%3A%2F%2Fwww.sp.example%3A8080%2Fopenam.
metaAlias(Required) Use this parameter to specify the local alias for the
provider, such as metaAlias=/myRealm/idp. This
parameter takes the format
/ as described in MetaAlias. You do not repeat the slash for
the top level realm, for example realm-name/provider-namemetaAlias=/idp.
requestType(Required) Type of manage name ID request, either
NewID to change the ID, or Terminate
to remove the information that links the accounts on the identity provider
and service provider.
SPProvidedID(Required if requestType=NewID) Name identifier
in use as described above.
affiliationID(Optional) Use this parameter to specify a SAML affiliation identifier.
relayState(Optional) Use this parameter to specify where to redirect the user
when the process is complete. Make sure you URL encode the value. For
example, relayState=http%3A%2F%2Fopenam.forgerock.org
takes the user to http://openam.forgerock.org.
spMNIRequestInit.jsp ParametersidpEntityID(Required) Use this parameter to indicate the remote identity
provider. Make sure you URL encode the value. For example, specify
idpEntityID=http://www.idp.example:8080/openam as
idpEntityID=http%3A%2F%2Fwww.idp.example%3A8080%2Fopenam.
metaAlias(Required) Use this parameter to specify the local alias for the
provider, such as metaAlias=/myRealm/sp. This parameter
takes the format / as described in MetaAlias. You do not repeat the slash for the
top level realm, realm-name/provider-namemetaAlias=/sp.
requestType(Required) Type of manage name ID request, either
NewID to change the ID, or Terminate
to remove the information that links the accounts on the identity provider
and service provider.
IDPProvidedID(Required if requestType=NewID) Name identifier
in use as described above.
affiliationID(Optional) Use this parameter to specify a SAML affiliation identifier.
relayState(Optional) Use this parameter to specify where to redirect the user
when the process is complete. Make sure you URL encode the value. For
example, relayState=http%3A%2F%2Fopenam.forgerock.org
takes the user to http://openam.forgerock.org.
You can terminate federation as described in Section 11.10.4, “Terminating Federation of Persistently Linked Accounts”.
OpenAM lets you terminate account federation, where the accounts have been linked with a persistent identifier as described in Section 11.10.2, “Using Persistent Federation Identifiers”.
The examples below work in an environment where the identity provider
is www.idp.example and the service provider is
www.sp.example. Both providers have deployed OpenAM on port
8080 under deployment URI /openam.
To initiate the process of terminating account federation from the service provider, access the following URL with at least the query parameters shown.
http://www.sp.example:8080/openam/saml2/jsp/spMNIRequestInit.jsp? idpEntityID=http%3A%2F%2Fwww.idp.example%3A8080%2Fopenam &metaAlias=/sp &requestType=Terminate
To initiate the process of terminating account federation from the identity provider, access the following URL with at least the query parameters shown.
http://www.idp.example:8080/openam/saml2/jsp/idpMNIRequestInit.jsp? spEntityID=http%3A%2F%2Fwww.sp.example%3A8080%2Fopenam &metaAlias=/idp &requestType=Terminate
OpenAM lets you configure the service provider to link an account based on an attribute value from the identity provider. When you know the user accounts on both the identity provider and the service provider share a common attribute value, such as an email address or other unique user identifier, you can use this method to link accounts without user interaction. See Procedure 11.14, “To Auto-Federate Accounts Based on an Attribute Value”.
OpenAM also lets you map users on the identity provider temporarily to a single anonymous user account on the service provider, in order to exchange attributes about the user without a user-specific account on the service provider. This approach can be useful when the service provider either needs no user-specific account to provide a service, or when you do not want to retain a user profile on the service provider but instead you make authorization decisions based on attribute values from the identity provider. See Procedure 11.15, “To Auto-Federate Using a Single Service Provider Account”.
OpenAM further allows you to use attributes from the identity provider to create accounts dynamically on the service provider. When using this method, you should inform the user and obtain consent to create the account if necessary. See Procedure 11.16, “To Auto-Federate With Dynamic Service Provider Account Creation”.
The following steps demonstrate how to auto-federate accounts based on an attribute value that is the same in both accounts.
Perform the following steps on the hosted identity provider(s), and again on the hosted service provider(s).
Login to the OpenAM console as administrator.
Browse to Federation > hosted-provider-name > Assertion Processing.
If the attribute to use for auto-federation is not yet in the attribute map, add the attribute mapping, and then Save your work.
On the hosted service provider, under Auto Federation, select Enabled and enter the local attribute name in the Attribute field, and then Save your work.
The following steps demonstrate how to auto-federate using a single anonymous user account on the service provider.
Perform the following steps on the hosted identity provider(s), and again on the hosted service provider(s).
Login to the OpenAM console as administrator.
Browse to Federation > hosted-provider-name > Assertion Processing.
If you want to get attributes from the identity provider and the attributes are is not yet in the attribute map, add the attribute mapping, and then Save your work.
On the hosted service provider, under Transient User, set the
single account to which to map all users, such as
anonymous, and then Save your work.
After completing configuration on the providers, use transient identifiers to federate as described in Section 11.10.1, “Using Transient Federation Identifiers”.
The following steps demonstrate how to auto-federate, dynamically creating an account on the service provider if necessary.
Set up auto-federation as described in Procedure 11.14, “To Auto-Federate Accounts Based on an Attribute Value”. The attributes you map from the identity provider are those that the service provider sets on the dynamically created accounts.
On the service provider console, browse to Access Control >
realm-name > Authentication > All Core
Settings..., and Dynamic or Dynamic with User Alias, which are described
in Hints For the
Core Authentication Module, and then Save your
work.
To test your work, create a user on the identity provider, log out of the console, and initiate SSO logging in as the user you created.
To initiate SSO, browse to one of the OpenAM SAML 2.0 JSPs with the appropriate query parameters. The following is an example URL for service provider initiated SSO.
http://www.sp.example:8080/openam/saml2/jsp/spSSOInit.jsp? idpEntityID=http%3A%2F%2Fwww.idp.example%3A8080%2Fopenam &metaAlias=/sp
On success, check http://www.sp.example:8080/openam/idm/EndUser to see the new user
account.
If you manage both the identity provider and service provider, you can link accounts out-of-band, in bulk. You make permanent connections for a list of identity provider and service provider by using the ssoadm bulk federation commands.
Before you can run the bulk federation commands, first establish the relationship between accounts, set up the providers as described in Section 11.2, “Setting Up SAML 2.0 SSO”, and install the ssoadm command as described in To Set Up Administration Tools.
To understand the relationships between accounts, consider an example
where the identity provider is at idp.example.org and the
service provider is at sp.example. A demo user
account has the Universal ID,
id=demo,ou=user,dc=example,dc=org, on the identity
provider. That maps to the Universal ID,
id=demo,ou=user,dc=example,dc=com, on the service
provider.
The ssoadm command then needs a file that maps
local user IDs to remote user IDs, one per line, separated by the vertical
bar character |. Each line of the file appears as
follows.
local-user-ID|remote-user-ID
In the example, starting on the service provider side, the line for the demo user reads as follows.
id=demo,ou=user,dc=example,dc=com|id=demo,ou=user,dc=example,dc=org
All the users’ accounts mapped in your file must exist at the identity provider and the service provider when you run the commands to link them.
Link the accounts using the ssoadm bulk federation commands.
Prepare the data with the ssoadm do-bulk-federation command.
The following example starts on the service provider side.
$ cat /tmp/user-map.txt id=demo,ou=user,dc=example,dc=com|id=demo,ou=user,dc=example,dc=org $ ssoadm do-bulk-federation --metaalias /sp --remoteentityid http://idp.example.org:8080/openam --useridmapping /tmp/user-map.txt --nameidmapping /tmp/name-map.txt --adminid amadmin --password-file /tmp/pwd.txt --spec saml2 Bulk Federation for this host was completed. To complete the federation, name Id mapping file should be loaded to remote provider.
Copy the name ID mapping output file to the other provider.
$ scp /tmp/name-map.txt idp.example.org:/tmp/name-map.txt openam@idp.example.org's password: name-map.txt 100% 177 0.2KB/s 00:00
Import the name ID mapping file with the ssoadm import-bulk-fed-data command.
The following example is performed on the identity provider side.
$ ssoadm import-bulk-fed-data --adminid amadmin --password-file /tmp/pwd.txt --metaalias /idp --bulk-data-file /tmp/name-map.txt Bulk Federation for this host was completed.
At this point the accounts are linked.
By default OpenAM transmits SAML messages by value. This makes it possible to access the SAML messages in the user agent. You can instead request that OpenAM transmit SAML messages by reference using SAML artifacts, which are small values that reference a SAML message. Providers then communicate directly to resolve artifacts, rather than sending the messages through the user agent.
When initiating single sign-on using idpSSOInit.jsp
or spSSOInit.jsp for example, add
binding=HTTP-Artifact to the list of query parameters.
The following example works in an environment where the identity provider is
www.idp.example and the service provider is
www.sp.example. Both providers have deployed OpenAM on port
8080 under deployment URI /openam.
http://www.sp.example:8080/openam/saml2/jsp/spSSOInit.jsp? idpEntityID=http%3A%2F%2Fwww.idp.example%3A8080%2Fopenam &metaAlias=/sp &binding=HTTP-Artifact
[8] These attribute types are configurable in the OpenAM console under Configuration > Global > SAMLv2 Service Configuration.
This chapter covers OpenAM support for the OAuth 2.0 authorization framework. The chapter begins by showing where OpenAM fits into the OAuth 2.0 authorization framework, and then shows how to configure the functionality.
RFC 6749, The OAuth 2.0 Authorization Framework, provides a standard way for resource owners to grant client applications access to the owners' web-based resources. The canonical example involves a user (resource owner) granting access to a printing service (client) to print photos that the user has stored on a photo-sharing server.
The section describes how OpenAM supports the OAuth 2.0 authorization framework in terms of the roles that OpenAM plays.[9] The following sequence diagram indicates the primary roles OpenAM can play in the OAuth 2.0 protocol flow.
OpenAM can function as an OAuth 2.0 authorization server. In this role, OpenAM authenticates resource owners and obtains their authorization in order to return access tokens to clients.
When using OpenAM as authorization server, you register clients with OpenAM by using OAuth 2.0 policy agent profiles. OpenAM supports both confidential and public clients.
OpenAM supports the four main grants for obtaining authorization described in RFC 6749: the authorization code grant, the implicit grant, the resource owner password credentials grant, and the client credentials grant. See RFC 6749 for details on the authorization grant process, and for details on how clients should make authorization requests and handle authorization responses. OpenAM also supports the SAML 2.0 Bearer Assertion Profiles for OAuth 2.0, described in the Internet-Draft.
The authorization code grant starts with the client, such as a web-based service, redirecting the resource owner's user-agent to the OpenAM authorization service. After authenticating the resource owner again obtaining the resource owner's authorization, OpenAM redirects the resource owner's user-agent back to the client with an authorization code that the client uses to request the access token. The following sequence diagram outlines a successful process from initial client redirection through to the client accessing the protected resource.
The implicit grant is designed for clients implemented to run inside the resource-owner user agent. Instead of providing an authorization code that the client must use to retrieve an access token, OpenAM returns the access token directly in the fragment portion of the redirect URI. The following sequence diagram outlines the successful process.
The resource owner password credentials grant lets the client use the resource owner's user name and password to get an access token directly. Although this grant might seem to conflict with an original OAuth goal of not having to share resource owner credentials with the client, it can makes sense in a secure context where other authorization grant types are not available, such as a client that is part of a device operating system using the resource owner credentials once and thereafter using refresh tokens to continue accessing resources. The following sequence diagram shows the successful process.
The client credentials grant uses client credentials as an authorization grant. This grant makes sense when the client is also the resource owner, for example. The following sequence diagram shows the successful process.
The Internet-Draft, SAML 2.0 Bearer Assertion Profiles for OAuth 2.0, describes a means to use SAML 2.0 assertions to request access tokens and to authenticate OAuth 2.0 clients.
At present OpenAM implements the profile to request access tokens.
In both profiles, the issuer must sign the assertion. The client communicates the assertion over a channel protected with transport layer security, by performing an HTTP POST to the OpenAM's access token endpoint. OpenAM as OAuth 2.0 authorization server uses the issuer ID to validate the signature on the assertion.
In the profile to request an access token, the OAuth 2.0 client bears a SAML 2.0 assertion that was issued to the resource owner on successful authentication. A valid assertion in this case is equivalent to an authorization grant by the resource owner to the client. OAuth 2.0 clients must make it clear to the resource owner that by authenticating to the identity provider who issues the assertion, they are granting the client permission to access the protected resources.
The HTTP POST to OpenAM to request an access token looks something like this:
POST /openam/oauth2/access_token HTTP/1.1
Host: openam.example.com
Content-Type: application/x-www-form-urlencoded
grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Asaml2-bearer&
assertion=PHNhbWxwOl...[base64url encoded assertion]...ZT4&
client_id=[ID registered with OpenAM]If OpenAM is already a SAML 2.0 service provider, you can configure OpenAM as OAuth 2.0 authorization server as well, and set an adapter class name in the service provider configuration that lets OpenAM POST the assertion from the service provider to the authorization server. See Section 12.6, “Configuring OpenAM as Both SAML 2.0 Service Provider & OAuth 2.0 Authorization Server” for details.
In addition to the standard authorization and token endpoints described in RFC 6749, OpenAM also exposes a token information endpoint for resource servers to get information about access tokens so they can determine how to respond to requests for protected resources. OpenAM as authorization server exposes the following endpoints for clients and resource servers.
/oauth2/authorizeAuthorization endpoint defined in RFC 6749, used to obtain an authorization grant from the resource owner
Example: https://openam.example.com:8443/openam/oauth2/authorize
/oauth2/access_tokenToken endpoint defined in RFC 6749, used to obtain an access token from the authorization server
Example: https://openam.example.com:8443/openam/oauth2/access_token
/oauth2/tokeninfoEndpoint not defined in RFC 6749, used to validate tokens, and to retrieve information such as scopes
Given an access token, a resource server can perform an HTTP GET on
/oauth2/tokeninfo?access_token=
to retrieve a JSON object indicating token-idtoken_type,
expires_in, scope, and the
access_token ID.
Example: https://openam.example.com:8443/openam/oauth2/tokeninfo
For examples, see the Developer's Guide section, OAuth 2.0 Authorization.
OpenAM can function as an OAuth 2.0 client for installations where the web resources are protected by OpenAM. To configure OpenAM as an OAuth 2.0 client, you set up an OpenAM OAuth 2.0 authentication module instance, and then integrate the authentication module into your authentication chains as necessary.
When OpenAM functions as an OAuth 2.0 client, OpenAM provides an OpenAM SSO session after successfully authenticating the resource owner and obtaining authorization. This means the client can then access resources protected by policy agents. In this respect the OpenAM OAuth 2.0 client is just like any other authentication module, one that relies on an OAuth 2.0 authorization server to authenticate the resource owner and obtain authorization. The following sequence diagram shows how the client gains access to protected resources in the scenario where OpenAM functions as both authorization server and client for example.
As the OAuth 2.0 client functionality is implemented as an OpenAM authentication module, you do not need to deploy your own resource server implementation when using OpenAM as an OAuth 2.0 client. Instead, use policy agents or OpenIG to protect resources.
To configure OpenAM as an OAuth 2.0 client, see Hints For the OAuth 2.0 Authentication Module.
OpenAM returns bearer tokens as described in RFC 6750, The OAuth 2.0 Authorization Framework: Bearer Token Usage. Notice in the following example JSON response to an access token request that OpenAM returns a refresh token with the access token. The client can use the refresh token to get a new access token as described in RFC 6749.
{
"expires_in": 599,
"token_type": "Bearer",
"refresh_token": "f6dcf133-f00b-4943-a8d4-ee939fc1bf29",
"access_token": "f9063e26-3a29-41ec-86de-1d0d68aa85e9"
}In addition to implementing your client, the resource server must also
implement the logic for handling access tokens. The resource server can use
the /oauth2/tokeninfo endpoint to determine whether the
access token is still valid, and to retrieve the scopes associated with the
access token.
The default OpenAM implementation of OAuth 2.0 scopes assumes that the space-separated (%20 when URL encoded) list of scopes in an access token request correspond to names of attributes in the resource owner's profile.
To take a concrete example, consider an access token request where
scope=mail%20cn and where the resource owner is the
default OpenAM demo user. (The demo user has no email address by default, but
you can add one, such as demo@example.com to the demo
user's profile.) When the resource server performs an HTTP GET on the token
information endpoint, /oauth2/tokeninfo?access_token=, OpenAM populates the
token-idmail and cn scopes with the email
address (demo@example.com) and common name
(demo) from the demo user's profile. The result is a
something like the following token information response.
{
"mail": "demo@example.com",
"scope": [
"mail",
"cn"
],
"cn": "demo",
"realm": "/",
"token_type": "Bearer",
"expires_in": 577,
"access_token": "f9063e26-3a29-41ec-86de-1d0d68aa85e9"
}OpenAM is designed to allow you to plug in your own scopes implementation if the default implementation does not do what your deployment requires. See Customizing OAuth 2.0 Scope Handling for an example.
You configure the OAuth 2.0 authorization service for a particular realm, starting from the Common Tasks page of the OpenAM console. This process also protects the authorization endpoint using a standard policy.
Follow these steps.
In the OpenAM console, select Common Tasks > Configure OAuth2.
On the Configure OAuth2 page, enter the Realm for the authorization service.
If necessary, adjust the lifetimes for authorization codes (10 minutes is the recommended setting in RFC 6749), access tokens, and refresh tokens.
Select Issue Refresh Tokens unless you do not want the authorization service to supply a refresh token when returning an access token.
If you want to use the default scope implementation, whereby scopes are taken to be resource owner profile attribute names, then keep the default setting.
If you have a custom scope implementation, put it on the OpenAM classpath, and provide the class name as Scope Implementation Class.
Click Create to complete the process.
In addition to setting up an OAuth 2.0 authorization server for the
realm, OpenAM sets up a policy to protect the authorization endpoint.
The policy appears in the list of policies for the realm. Its name is
OAuth2ProviderPolicy.
If resource owners log in with a user name that is not their user ID, but instead their mail address or some other profile attribute, then add the profile attribute name to the list that can be used for authentication.
To make the change, browse to Access Control > Realm
Name > Services > OAuth2 Provider, add the profile
attributes to the list titled User Profile Attribute(s) the Resource Owner
is Authenticated On, and then Save your work.
You can further adjust the authorization server configuration after you
create it in the OpenAM console under Access Control > Realm
Name > Services > OAuth2 Provider.
You can adjust global defaults in the OpenAM console under Configuration > Global > OAuth2 Provider.
You register an OAuth 2.0 client with the OpenAM OAuth 2.0 authorization service by creating and configuring an OAuth 2.0 Client agent profile.
At minimum you must have the client identifier and client password in order to register your OAuth 2.0 client.
Use either of these two facilities.
In the OpenAM console, access the client registration endpoint
at /oauth2/registerClient.jsp.
The full URL depends on where you deployed OpenAM. For example,
https://openam.example.com:8443/openam/oauth2/registerClient.jsp.
The Register a Client page lets you quickly create and configure an OAuth 2.0 client in a simple web page without inline help.
In the OpenAM console under Access Control > Realm
Name > Agents > OAuth 2.0 Client > Agent, click
New..., then provide the client identifier and client password, and
finally click create to create the profile.
This page requires that you perform additional configuration separately.
After initially registering or creating a client agent profile as necessary.
In the OpenAM console, browse to Access Control >
Realm Name > Agents > OAuth 2.0 Client
> Agent > Client Name to open the Edit
Client Name page.
Adjust the configuration as needed using the inline help for hints, and also the documentation section Configuring OAuth 2.0 Clients.
An important decision to make at this point is whether your client is a confidential client or a public client. This depends on whether your client can keep its credentials confidential, or whether its credentials can be exposed to the resource owner or other parties. If your client is a web-based application running on a server, such as the OpenAM OAuth 2.0 client, then you can keep its credentials confidential. If your client is a user-agent based client, such as a JavaScript client running in a browser, or a native application installed on a device used by the resource owner, then yours is a public client.
When finished, Save your work.
OpenAM exposes a RESTful API that lets administrators read, list, and delete OAuth 2.0 tokens. OAuth 2.0 clients can also manage their own tokens. See the Developer's Guide section on the OAuth 2.0 Token Administration Endpoint for details.
OpenAM also lets resource owners browse and delete OAuth 2.0 tokens that they authorized. Resource owners can do this from the OAuth 2 Token Manager page.
To access the page, login to OpenAM at /XUI, such as
https://openam.example.com:8443/openam/XUI/, as the
resource owner. Then click the OAuth 2 Token Manager link at the top of the
page.
For example, the following screen shows the demo user (user name:
demo, password: changeit) browsing
access tokens on OAuth 2 Token Manager page, after the OAuth 2.0 client with
identifier myClientID has been granted tokens by using the
Resource Owner Password Credentials Grant as shown in the
Developer's Guide.
This section takes a high-level look at how to set up OpenAM both as an OAuth 2.0 authorization server and also as a client in order to protect resources by using a policy agent. The high-level steps are as follows.
Set up a policy agent or OpenIG to protect your web resources, including the policy used to protect the resources.
Make sure you can access the resources using an authentication module that you already know before working with OAuth 2.0.
Configure OpenAM's OAuth 2.0 authorization service as described in Section 12.2, “Configuring the OAuth 2.0 Authorization Service”.
Configure an OpenAM OAuth 2.0 authentication module instance using the Hints For the OAuth 2.0 Authentication Module with the OpenAM authorization service endpoints.
Register the OAuth 2.0 authentication module as an OAuth 2.0 confidential client as described in Section 12.3, “Registering OAuth 2.0 Clients With the Authorization Service”.
Logout and access the protected resources to see the process in action.
This example pulls everything together (except security considerations), using OpenAM as an OAuth 2.0 authorization server, OAuth 2.0 client, and "resource server" by protecting web resources with a policy agent.
This example uses two hosts, oauth2.example.com
where OpenAM is deployed at
http://oauth2.example.com:8080/openam, and
www.example.com where the resources to protect are
deployed in Apache Tomcat at
http://www.example.com:8080/examples.
Set up an OpenAM policy agent and policy in the top-level realm,
/, to protect resources. So far this is standard
OpenAM, unrelated to OAuth 2.0.
See the OpenAM Policy
Agent 3.2.0-SNAPSHOT Installation Guide
for instructions on installing a policy agent. This example relies on the
Apache Tomcat Java EE policy agent, configured to protect resources in
Apache Tomcat at http://www.example.com:8080/.
The policies for this example protect the Apache Tomcat examples
under http://www.example.com:8080/examples/, allowing
GET and POST operations by all authenticated users. For more information
on creating policies, see Configuring
Policies.
After setting up the policy agent and the policy, you can make sure
everything is working by attempting to access a protected resource, in this
case http://www.example.com:8080/examples/. The policy
agent should redirect you to OpenAM to authenticate with the default
authentication module, where you can login as user demo
password changeit. After successful authentication,
OpenAM redirects your browser back to the protected resource and the
policy agent lets you get the protected resource, in this case the Tomcat
examples top page.
Configure OpenAM's OAuth 2.0 authorization service as described in Section 12.2, “Configuring the OAuth 2.0 Authorization Service”.
The authorization endpoint to protect in this example is at
http://oauth2.example.com:8080/openam/oauth2/authorize.
Configure an OpenAM OAuth 2.0 authentication module instance for the top-level realm.
Under Access Control > / (Top-Level Realm) > Authentication
> Module Instances, click New. Name the module
OAuth2, and select the OAuth 2.0 type, then click
OK to save your work.
Then click Authentication > Module Instances > OAuth2 to open the OAuth 2.0 client configuration page. This page offers numerous options. The key settings for this example are the following.
This is the client identifier used to register your client with OpenAM's authorization server, and then used when your client must authenticate to OpenAM.
Set this to myClientID for this example.
This is the client password used to register your client with OpenAM's authorization server, and then used when your client must authenticate to OpenAM.
Set this to password for this example. Make
sure you use strong passwords when you actually deploy OAuth 2.0.
In this example,
http://oauth2.example.com:8080/openam/oauth2/authorize.
This OpenAM endpoint can take additional parameters. In particular you must specify the realm if the OpenAM OAuth 2.0 provider is configured for a subrealm rather than / (Top-Level Realm).
For example, if the OAuth 2.0 provider is configured for the
realm /customers, then use the following URL:
https://openam.example.com:8443/openam/oauth2/authorize?realm=/customers
The /oauth2/authorize endpoint can also take
module and service parameters. Use
either as described in Authenticating To OpenAM, where
module specifies the authentication module instance
to use or service specifies the authentication chain
to use when authenticating the resource owner.
In this example,
http://oauth2.example.com:8080/openam/oauth2/access_token.
This OpenAM endpoint can take additional parameters. In particular you must specify the realm if the OpenAM OAuth 2.0 provider is configured for a subrealm rather than / (Top-Level Realm).
For example, if the OAuth 2.0 provider is configured for the
realm /customers, then use the following URL:
https://openam.example.com:8443/openam/oauth2/access_token?realm=/customers
In this example,
http://oauth2.example.com:8080/openam/oauth2/tokeninfo.
In this example, cn.
The demo user has common name demo by default,
so by setting this to cn (Common Name), OpenAM
can get the value of the attribute without the need to create
additional subjects, or to update existing subjects.
In this example, disable this functionality.
OpenAM can create local accounts based on the account information returned by the authorization server. For this example, map all users to the anonymous account to keep it simple.
In this example, enable this functionality.
Register the OAuth 2.0 authentication module as an OAuth 2.0 confidential client as described in Section 12.3, “Registering OAuth 2.0 Clients With the Authorization Service”.
Under Access Control > / (Top-Level Realm) > Agents >
OAuth 2.0 Client > Agents > myClientID, adjust
the following settings.
In this example, confidential. OpenAM protects
its credentials as an OAuth 2.0 client.
In this example,
http://oauth2.example.com:8080/openam/oauth2c/OAuthProxy.jsp.
In this example, cn.
Before you try it out, you must make the following additional change to the configuration.
Your OpenAM OAuth 2.0 client authentication module is not part of the default chain, and therefore OpenAM does not call it unless you specifically request the OAuth 2.0 client authentication module.
To cause the policy agent to request your OAuth 2.0 client
authentication module explicitly, browse in OpenAM console to your
policy agent profile configuration, in this case
Access Control > / (Top-Level Realm) > Agents > J2EE >
Agents > Tomcat > OpenAM Services > OpenAM
Login URL, and add
http://oauth2.example.com:8080/openam/UI/Login?module=OAuth2,
moving it to the top of the list.
Save your work.
This ensures that the policy agent directs the resource owner
to OpenAM with the instruction to authenticate using the
OAuth2 authentication module.
Try it out.
First make sure you are logged out of OpenAM, for example by
browsing to the logout URL, in this case
http://oauth2.example.com:8080/openam/UI/Logout.
Next attempt to access the protected resource, in this case
http://www.example.com:8080/examples/.
If everything is set up properly, the policy agent redirects your
browser to the login page of OpenAM with module=OAuth2
among other query string parameters. After you authenticate, for example
as user demo, password changeit,
OpenAM presents you with an authorization decision page.
When you click Allow, the authorization service creates an SSO session, and redirects the client back to the resource, thus allowing the client to access the protected resource.
As described in Section 12.1.1.5, “SAML 2.0 Bearer Assertion Profiles”, OpenAM as OAuth 2.0 authorization server can handle the profile where a SAML 2.0 assertion borne by the client functions as an authorization grant to get an access token. This lets a client get an access token when a resource owner completes SAML 2.0 Web Single Sign-On.
You can configure OpenAM as both SAML 2.0 service provider and OAuth 2.0 authorization server, using an built-in adapter class to POST assertions returned to the service provider to the access token endpoint of the authorization server. This allows clients to send a resource owner to the identity provider for SAML 2.0 web SSO, get an assertion at the service provider, and retrieve an access token from the authorization server. In other words, once this scenario is configured, the client must only direct the resource owner to start web SSO as described in Using SAML 2.0 Single Sign-On & Single Logout, and then retrieve the access token on success or handle the error condition on failure.
For this scenario to work, the following conditions must be met.
The client must make the resource owner understand that by authenticating to the SAML 2.0 identity provider the resource owner grants the client access to the protected resources. OpenAM does not present the resource owner with an authorization decision.
The SAML 2.0 identity provider issuing the assertion must sign the assertion, and must correctly handle the name ID for the subject.
OpenAM as relying party must request that assertions are signed, must
verify the signatures on assertions, must correctly handle name IDs
from the issuer, and must use the built-in
org.forgerock.restlet.ext.oauth2.flow.OAuth2Saml2GrantSPAdapter
adapter class in the service provider configuration to POST assertions
to the OAuth 2.0 authorization service.
The OAuth 2.0 authorization service and SAML 2.0 service provider must be configured together on the same OpenAM server.
An OAuth 2.0 client configuration on OpenAM with the same name as the service provider entity ID must be set up on OpenAM.
The OAuth 2.0 client initiating the process must be able to consume the access token and to handle errors if necessary.
Follow these steps. The test configuration hints in this procedure let you prepare configuration to test with the demo user created in OpenAM by default.
Make sure the SAML 2.0 identity provider signs assertions and that name IDs are correctly configured to map resource owner accounts.
When configuring OpenAM as a hosted identity provider follow these steps.
Make sure the Signing Key is properly configured on setup.
For a test configuration, select the test
certificate shown in the Common Tasks > Create Hosted Service Provider
wizard.
Make sure name IDs are properly configured.
For a test configuration, in the OpenAM console under Federation
> Entity Providers > IDP name >
NameID Value Map, add
urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified=cn
and then Save your work.
For more detail on configuring OpenAM as a SAML 2.0 identity provider, see Configuring Identity Providers.
Configure OpenAM as service provider.
Set up a hosted service provider in OpenAM console under
Common Tasks > Create Hosted Service Provider, keeping track of
the name, such as https://www.sp.example:8443/openam,
and selecting Use default attribute mapping from Identity Provider.
For details on configuring OpenAM as a SAML 2.0 service provider, see Configuring Service Providers.
Under Federation > Entity Providers > SP
name > Assertion Content > Request/Response Signing,
check Assertions Signed.
For a test configuration, in Federation > Entity Providers >
SP name > Assertion Content > NameID
Format List, remove all but
urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified,
and then Save your work.
In Federation > Entity Providers > SP
name > Assertion Processing > Adapter, add
org.forgerock.restlet.ext.oauth2.flow.OAuth2Saml2GrantSPAdapter,
and then Save your work.
This is the adapter class that POSTs the SAML 2.0 assertion to the OAuth 2.0 access token endpoint.
Use the wizard under Common Tasks > Register Remote Identity Provider to import the identity provider metadata.
Make sure the identity provider imports the metadata for your service provider.
If your service provider is at
https://www.sp.example:8443/openam, then the metadata
can be accessed at
https://www.sp.example:8443/openam/saml2/jsp/exportmetadata.jsp.
On the service provider OpenAM server, set up the OAuth 2.0 authorization server as described in Section 12.2, “Configuring the OAuth 2.0 Authorization Service”.
For a test configuration, set the realm to /, and
accept the defaults.
On the service provider and authorization server OpenAM server, set
up an OAuth 2.0 client profile with the same name as the service
provider under Access Control > realm >
Agents > OAuth 2.0 Client > New...
For example, if the service provider name is
https://www.sp.example:8443/openam, then that is also
the name of the OAuth 2.0 client profile.
You can make additional changes to the client profile if necessary. See Section 12.3, “Registering OAuth 2.0 Clients With the Authorization Service” for details.
Test your configuration.
Logout of all OpenAM servers.
Initiate SAML 2.0 Web SSO.
For example, if your identity provider is at
https://www.idp.example:8443/openam with meta alias
/idp and your service provider is at
https://www.sp.example:8443/openam, then browse to the
following URL (without line breaks or spaces).
http://www.idp.example:8443/openam/saml2/jsp/idpSSOInit.jsp ?metaAlias=/idp&spEntityID=http://www.sp.example:8443/openam
For other configurations, see Using SAML 2.0 Single Sign-On & Single Logout.
Login to the identity provider.
For OpenAM, login with user name demo and
password changeit.
Login to the service provider.
For OpenAM, login with user name demo and
password changeit.
See the resulting access token on successful login.
The result looks something like this, all on one line.
{
"expires_in": 59,
"token_type": "Bearer",
"access_token": "f0f731e0-6013-47e3-9c07-da598157a85f"
}OAuth 2.0 messages involve credentials and access tokens that allow the bearer to retrieve protected resources. Therefore, do not let an attacker capture requests or responses. Protect the messages going across the network.
RFC 6749 includes a number of Security Considerations, and also requires Transport Layer Security (TLS) to protect sensitive messages. Make sure you read the section covering Security Considerations, and that you can implement them in your deployment.
Also, especially when deploying a mix of other clients and resource servers, take into account the points covered in the Internet-Draft, OAuth 2.0 Threat Model and Security Considerations, before putting your service into production.
This chapter shows how to backup and restore OpenAM configuration data. This chapter does not cover backup and restore of user data, which in a critical production system should be stored separately.
OpenAM stores service configuration data in a directory. During normal production operations, you rely on directory replication to maintain multiple, current copies of OpenAM service configuration. For disaster recovery, however, you backup to and restore the service configuration from XML, using the ssoadm command.
Backup OpenAM service configuration using the ssoadm command.
$ ssoadm export-svc-cfg -u amadmin -e fZatIu68OiqccJMXosSRyVjMsWJIx+SA -f /tmp/pwd.txt -o ~/backup-`date -u +%F-%m-%S`.xml Service Configuration was exported.
In this example, the secret key for encrypting the password in
-e fZatIu68OiqccJMXosSRyVjMsWJIx+SA was taken from the
Password Encryption Key field in the OpenAM console under Configuration >
Servers and Sites > Server Name >
Security.
Stop OpenAM.
Back up the instance file that points to the configuration directory.
This file is named after the instance location, such as
$HOME/.openamcfg/AMConfig_path_to_tomcat_webapps_openam_,
where $HOME is that of the user running the web container where OpenAM
is deployed.
Back up the files in the configuration directory.
The content of the file you backed up in the previous step is the
path to the configuration directory, such as
$HOME/openam.
Start OpenAM.
The following steps restore OpenAM configuration data from backup as described in Procedure 13.1, “To Back Up OpenAM Configuration”.
If using the default OpenAM configuration data store, run ssoadm embedded-status to check the data store status to determine whether you must restore the configuration files including the embedded data store, or only the service configuration.
Deploy the OpenAM web application as you did for installation, but do not start OpenAM or configure it.
In a site configuration, perform this step on all servers.
Restore files in the configuration directory as necessary.
In a site configuration, perform this step on all servers.
Restore the bootstrap files as necessary.
In a site configuration, perform this step on all servers.
Start OpenAM.
In a site configuration, perform this step on all servers before proceeding.
Restore OpenAM service configuration using the ssoadm command.
$ ssoadm import-svc-cfg -u amadmin -e fZatIu68OiqccJMXosSRyVjMsWJIx+SA -f /tmp/pwd.txt -X ~/backup-2011-09-13-09-00.xml Directory Service contains existing data. Do you want to delete it? [y|N] y Please wait while we import the service configuration... Service Configuration was imported.
In a site configuration, you perform this step only once.
If the password for amadmin has been changed
through the OpenAM console, then use the bind password for the root DN of
the configuration store.
Restart OpenAM.
In a site configuration, perform this step on all servers.
This chapter shows you how to handle certificates used to protect network communication and for authentication.
In theory, you should not have to concern yourself with certificates
when working with OpenAM. OpenAM core services and J2EE policy agents depend
on the certificates installed for use with the web application container in
which they run. OpenAM web policy agents depend on the certificates installed
for use with the web server. Theoretically, each certificate has been signed
by a well-known Certificate Authority (CA), whose certificate is already
installed in the Java CA certificates trust store
($JAVA_HOME/jre/lib/security/cacerts, default password
changeit) and in browsers, and so is recognized by other
software used without you having to configure anything.
In practice, you might not have the budget for CA signed certificates in your lab or test environment, where you might constantly be installing new configurations, using and throwing away certificates for experiments and repeated tests. In the lab, therefore, you set up OpenAM to use self-signed certificates that you generate at no cost, but that are not recognized, and therefore not trusted out of the box.
How you configure the containers where OpenAM and your applications run to use self-signed certificates depends on your web application server or web server software. Yet, the basic principles apply.
First, your container requires its own certificate for setting up secure connections.
Second, the clients connecting must be able to trust the container certificate. Generally this means that clients must recognize the container certificate because they have a copy of the public certificate stored somewhere the client trusts.
Third, if you use certificate authentication in OpenAM, OpenAM must also be able to find a copy of the client's public certificate to trust the client, most likely by finding a match with the certificate stored in the client profile from the identity repository. How you include client certificates in their identity repository entries depends on your identity repository more than it depends on OpenAM.
Some client applications let you trust certificates blindly. This can be helpful when working in your lab or test environment with self-signed certificates. For example, you might want to use HTTPS with the OpenAM RESTful API without having the client recognize the self-signed server certificate.
$ curl "https://openam.example.com:8443/openam/identity/authenticate? username=bjensen&password=hifalutin" curl: (60) Peer certificate cannot be authenticated with known CA certificates More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option. $ curl --insecure "https://openam.example.com:8443/openam/identity/authenticate? username=bjensen&password=hifalutin" token.id=AQIC5wM2LY4SfczMax8jegpSiaigB96NOWylLilsd0PUMjY.*AAJTSQACMDE.*
The container where you install OpenAM requires a certificate in order to set up secure connections. The following steps demonstrate one way to set up Tomcat with an HTTPS connector, using the Java keytool command to manage the certificate and key stores. Once Tomcat can do HTTPS, you deploy OpenAM as you normally would, over HTTPS.
Stop Tomcat.
Create a certificate and store it in a new key store.
$ cd /path/to/tomcat/conf/ $ keytool -genkey -alias openam.example.com -keyalg RSA -keystore keystore.jks Enter keystore password: What is your first and last name? [Unknown]: openam.example.com What is the name of your organizational unit? [Unknown]: Eng What is the name of your organization? [Unknown]: ForgeRock.com What is the name of your City or Locality? [Unknown]: Grenoble What is the name of your State or Province? [Unknown]: Isere What is the two-letter country code for this unit? [Unknown]: FR Is CN=openam.example.com, OU=Eng, O=ForgeRock.com, L=Grenoble, ST=Isere, C=FR correct? [no]: yes Enter key password for <openam.example.com> (RETURN if same as keystore password):
Uncomment the SSL connector configuration in Tomcat's
conf/server.xml, specifying your key store file
and password.
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
-->
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystoreFile="/path/to/tomcat/conf/keystore.jks"
keystorePass="changeit"
clientAuth="false" sslProtocol="TLS" />Start Tomcat.
Verify that you can connect to Tomcat on port 8443 over HTTPS.
Your browser does not trust the certificate, because the certificate is self-signed, not signed by any of the CAs your browser knows.
You recognize the Subject and Issuer of your certificate, and so can choose to trust the certificate, effectively saving it into your browser's trust store.
Deploy and configure OpenAM as you normally would.
When you use a self-signed certificate for your container, clients
connecting must be able to trust the container certificate. Your browser
makes this an easy, but manual process. For other client applications, you
must import the certificate into the trust store used by the client. By
default, Java applications can use the
$JAVA_HOME/jre/lib/security/cacerts store. The default
password is changeit.[10] The
steps that follow demonstrate how to import a self-signed certificate into
the Java cacerts store.
Export the certificate from the key store.
$ cd /path/to/tomcat/conf/ $ keytool -exportcert -alias openam.example.com -file openam.crt -keystore keystore.jks Enter keystore password: Certificate stored in file <openam.crt>
Import the certificate into the trust store.
$ keytool -importcert -alias openam.example.com -file openam.crt -trustcacerts -keystore $JAVA_HOME/jre/lib/security/cacerts Enter keystore password: Owner: CN=openam.example.com, OU=Eng, O=ForgeRock.com, L=Grenoble, ST=Isere, C=FR Issuer: CN=openam.example.com, OU=Eng, O=ForgeRock.com, L=Grenoble, ST=Isere, C=FR Serial number: 4e789e40 Valid from: Tue Sep 20 16:08:00 CEST 2011 until: Mon Dec 19 15:08:00 CET 2011 Certificate fingerprints: MD5: 31:08:11:3B:15:75:87:C2:12:08:E9:66:00:81:61:8D SHA1: AA:90:2F:42:0A:F4:A9:A5:0C:90:A9:FC:69:FD:64:65:D9:78:BA:1D Signature algorithm name: SHA1withRSA Version: 3 Trust this certificate? [no]: yes Certificate was added to keystore
The following steps cover how to change the signing key for an identity provider. This procedure involves creating a self-signed certificate in a new key store file, and also preparing encrypted password files so that OpenAM can access the key store and the private key.
If you do not already have the new signing key in your key store, generate a new key and key store.
The following example starts an interactive keytool
session that requests information needed to generate a new key valid for two
years, and puts it in a key store named keystore.jks.
You can perform this step in a temporary location, and then move the files
generated once you have completed your work.
Keep track of the passwords you enter here, as you use them in the next step.
$ cd /tmp $ keytool -genkeypair -alias newkey -keyalg RSA -keysize 1024 -validity 730 -storetype JKS -keystore keystore.jks Enter keystore password: Re-enter new password: What is your first and last name? [Unknown]: openam.example.com What is the name of your organizational unit? [Unknown]: Eng What is the name of your organization? [Unknown]: ForgeRock.com What is the name of your City or Locality? [Unknown]: Grenoble What is the name of your State or Province? [Unknown]: Isere What is the two-letter country code for this unit? [Unknown]: FR Is CN=openam.example.com, OU=Eng, O=ForgeRock.com, L=Grenoble, ST=Isere, C=FR correct? [no]: yes Enter key password for <newkey> (RETURN if same as keystore password): Re-enter new password:
Self-signed keys are not automatically recognized by other entities. You must also share the self-signed key as described in Procedure 14.2, “To Share Self-Signed Certificates”.
Using the passwords you entered in the previous step, prepare the password files to encrypt.
Create two files, each containing only a password in clear text. You can create the files in the same directory as the key store.
keypass.cleartext contains the clear text
key password for the private key you generated.
storepass.cleartext contains the clear text
key store password.
If you have not already done so, install the administration tools as described in To Set Up Administration Tools.
Prepare encrypted password files for use by OpenAM.
$ ./ampassword --encrypt keypass.cleartext > .keypass $ ./ampassword --encrypt storepass.cleartext > .storepass
Remove the *.cleartext files after preparing
the encrypted versions.
Replace the default OpenAM key store and password files with the ones that you have created.
The following example works with an installation of OpenAM where
the deployment URI is /openam.
$ cp keystore.jks .keypass .storepass ~/openam/openam/
Restart OpenAM, or the container where it runs, so that OpenAM can use the new key store and encrypted password files.
Login to OpenAM console as administrator, and then set the new signing key in one of two ways.
If you have not yet configured your identity provider, select Common Tasks > Create Hosted Identity Provider, and then follow the instructions, selecting your key from the Signing Key drop-down list.
If you have already configured your identity provider, browse to
Federation > provider-name > Assertion
Content > Signing and Encryption, and then edit the signing key
certificate alias.
Save your work.
Share updated metadata with other entities in your circle of trust as described in Setting Up SAML 2.0 SSO.
[10] Alternatively,
you can specify the trust store for a Java application, such as
-Djavax.net.ssl.trustStore=/path/to/truststore.jks
-Djavax.net.ssl.trustStorePassword=changeit.
This chapter covers how to monitor OpenAM services to ensure appropriate performance and service availability.
OpenAM lets you monitor OpenAM over protocol through web pages, Java Management Extensions (JMX), or Simple Network Management Protocol (SNMP). The services are based on JMX.
To configure monitoring services, login to OpenAM console as OpenAM administrator, and browse to Configuration > System > Monitoring. Alternatively you can use the ssoadm set-attr-defs command.
$ ssoadm set-attr-defs --servicename iPlanetAMMonitoringService --schematype Global --adminid amadmin --password-file /tmp/pwd.txt --attributevalues iplanet-am-monitoring-enabled=true
Restart OpenAM for the changes to take effect. You must also restart OpenAM if you disable monitoring.
You can configure OpenAM to allow you to access a web based view of
OpenAM MBeans on port 8082 where the core server runs, such as
http://openam-ter.example.com:8082/. Either use the
console, or use the ssoadm command.
$ ssoadm set-attr-defs --servicename iPlanetAMMonitoringService --schematype Global --adminid amadmin --password-file /tmp/pwd.txt --attributevalues iplanet-am-monitoring-http-enabled=true
The default authentication file allows you to authenticate over HTTP
as user demo, password changeit. The
user name and password are kept in the file specified, with the password
encrypted.
$ cat openam/openam/openam_mon_auth demo AQICMBCKlwx6G3vzK3TYYRbtTpNYAagVIPNP
Or
$ cat openam/openam/opensso_mon_auth demo AQICvSe+tXEg8TUUT8ekzHb8IRzVSvm1Lc2u
You can encrypt a new password using the ampassword command. After changing the authentication file, you must restart OpenAM for the changes to take effect.
You can configure OpenAM to allow you to listen for Java Management eXtension (JMX) clients, by default on port 9999. Either use the OpenAM console page under Configuration > System > Monitoring and make sure both Monitoring Status and Monitoring RMI interface status are both set to Enabled, or use the ssoadm command.
$ ssoadm set-attr-defs --servicename iPlanetAMMonitoringService --schematype Global --adminid amadmin --password-file /tmp/pwd.txt --attributevalues iplanet-am-monitoring-enabled=true iplanet-am-monitoring-rmi-enabled=true
A number of tools support JMX, including jvisualvm
and jconsole. When you use jconsole
to browse OpenAM MBeans for example, the default URL for the OpenAM running
on the local system is
service:jmx:rmi:///jndi/rmi://localhost:9999/server.
$ jconsole service:jmx:rmi:///jndi/rmi://localhost:9999/server &
You can also browse the MBeans by connecting to your web application container, and browsing to the OpenAM MBeans. By default, JMX monitoring for your container is likely to be accessible only locally, using the process ID.
Also see Monitoring and Management Using JMX for instructions on how to connect remotely, how to use SSL, and so forth.
You can configure OpenAM to allow you to listen on port 8085 for SNMP monitoring. Either use the console, or use the ssoadm command.
$ ssoadm set-attr-defs --servicename iPlanetAMMonitoringService --schematype Global --adminid amadmin --password-file /tmp/pwd.txt --attributevalues iplanet-am-monitoring-snmp-enabled=true
You can check over HTTP whether OpenAM is up, using
isAlive.jsp. Point your application to the file
under the OpenAM URL, such as
http://openam.example.com:8080/openam/isAlive.jsp.
If you get a success code (with Server is ALIVE: in
the body of the page returned), then OpenAM is up.
OpenAM implements logging as a service. This means remote clients such as your OpenAM policy agents can log messages to the central logging service.
By default OpenAM logs to files in the configuration directory for
the instance, such as $HOME/openam/log/ for log files,
and $HOME/openam/debug/ for debug files. You can also
configure OpenAM to log through JDBC to a database such as MySQL or Oracle
DB.
OpenAM sends messages to different log files, each named after the
service logging the message, with two different types log files per service:
.access and .error. Thus the
current log files for the authentication service are named
amAuthentication.access and
amAuthentication.error.
See the Log Messages reference for details.
OpenAM lets you change the log level on the fly. OpenAM also supports log rotation, secure logging, and log message buffering.
To configure OpenAM logging properties overall, login to the OpenAM console as OpenAM administrator, and browse to Configuration > System > Logging.
To adjust the debug level while OpenAM is running, login to the OpenAM
console as OpenAM administrator, and browse to Configuration > Servers
and Sites > Server Name > General, and then
scroll down to Debugging. The default level for debug logging is Error.
This level is appropriate for normal production operations, in which case
no debug log messages are expected.
Setting debug log level to Warning increases the volume of messages. Setting debug log level to Message dumps detailed trace messages. Unless told to do so by qualified support personnel, do not use Warning and Message levels in production.
During development, you might find it useful to log all debug messages
to a single file. In order to do so, set Merge Debug Files to
on.
After changing this setting, restart OpenAM or the container in which it runs for the change to take effect.
By default, OpenAM Policy Agents log to local files in their configuration directories for debugging. The exact location depends on where you installed the agent.
By default OpenAM policy agents send log messages remotely to OpenAM
when you log auditing information about URL access attempts. To configure
audit logging for a centrally managed policy agent, login to the OpenAM
console as administrator, and browse to Access Control >
Realm Name > Agents >
Agent Type > Agent
Name > Global, and then scroll down to the Audit
section.
OpenAM lets you capture debug log messages selectively for a specific service. This can be useful when you must turn on debugging in a production system where you want to avoid excessive logging, but must gather messages when you reproduce a problem.
Perform these steps to capture debug messages for a specific service.
Login to OpenAM console as administrator,
amadmin.
Browse to Debug.jsp, for example
http://openam.example.com:8080/openam/Debug.jsp.
No links to this page are provided in the console.
Select the service to debug and also the level required given the
hints provided in the Debug.jsp page.
The change takes effect immediately.
Promptly reproduce the problem you are investigating.
After reproducing the problem, immediately return to the
Debug.jsp page, and revert to normal log levels
to avoid filling up the disk where debug logs are stored.
By default OpenAM does not rotate debug logs. To rotate debug logs,
edit WEB-INF/classes/debugconfig.properties where
OpenAM is deployed.
The debugconfig.properties file includes
the following properties.
org.forgerock.openam.debug.prefixThis property specifies the debug log file prefix applied when OpenAM rotates a debug log file. The property has no default. It takes a string as the property value.
org.forgerock.openam.debug.suffixThis property specifies the debug log file suffix applied when
OpenAM rotates a debug log file. The property takes a
SimpleDateFormat string. The default is
-MM.dd.yyyy-kk.mm.
org.forgerock.openam.debug.rotationThis property specifies an interval in minutes between debug log rotations. Set this to a value greater than zero to enable debug log rotation.
After you edit the debugconfig.properties file,
you must restart OpenAM or the web container where it runs for the changes
to take effect.
This chapter covers key OpenAM tunings to ensure smoothly performing access and federation management services, and to maximize throughput while minimizing response times.
The recommendations provided here are guidelines for your testing rather than hard and fast rules for every situation. Said another way, the fact that a given setting is configurable implies that no one setting is right in all circumstances.
The extent to which performance tuning advice applies depends to a large extent on your requirements, on your workload, and on what resources you have available. Test suggestions before rolling them out into production.
As a rule of thumb, an OpenAM server in production with a 3 GB heap can handle 100,000 sessions. Although you might be tempted to use a larger heap with a 64-bit JVM, smaller heaps are easier to manage. Thus, rather than scaling single servers up to increase the total number of simultaneous sessions, consider scaling out by adding more servers instead. The suggestions that follow pertain to production servers.
OpenAM has a number of settings that can be tuned to increase performance.
The following general points apply.
Set debug level to error.
Disable session failover debugging.
Set container-level logging to a low level such as
error or severe.
Tune both your LDAP data stores and also your LDAP authentication modules.
To change LDAP data store settings, browse to Access Control >
Realm Name > Data Stores >
Data Store Name in the OpenAM console.
Each data store has its own connection pool and therefore each data store
needs its own tuning.
| Property | Default Value | Suggestions |
|---|---|---|
| LDAP Connection Pool Minimum Size | 1 |
The minimum LDAP connection pool size; a good tuning value for this property is 10. ( |
| LDAP Connection Pool Maximum Size | 10 |
The maximum LDAP connection pool size; a high tuning value for this property is 65, though you might well be able to reduce this for your deployment. Ensure your LDAP server can cope with the maximum number of clients across all the OpenAM servers. ( |
| Caching | False |
Turn on the caching feature in the LDAP data store. ( |
| Maximum Age of Cached Items | 600 |
This is 10 minutes and does not normally need tuning. ( |
| Maximum Size of the Cache | 10240 |
This is 10k and is very small for a cache. A 1 MB cache (1048576) is a better starting point. ( |
To change connection pool settings for the LDAP authentication module, browse to Configuration > Authentication > Core in the OpenAM console.
| Property | Default Value | Suggestions |
|---|---|---|
| Default LDAP Connection Pool Size | 1:10 |
The minimum and maximum LDAP connection pool used by the LDAP authentication module. This should be tuned to 10:65 for production. ( |
OpenAM has two thread pools used to send notifications to clients. The Service Management Service thread pool can be tuned in OpenAM console under Configuration > Servers and Sites > Default Server Settings > SDK.
| Property | Default Value | Suggestions |
|---|---|---|
| Notification Pool Size | 10 |
This is the size of the thread pool used to send notifications. In production this value should be fine unless lots of clients are registering for SMS notifications. ( |
The session service has its own thread pool to send notifications. This is configured under Configuration > Servers and Sites > Default Server Settings > Session.
| Property | Default Value | Suggestions |
|---|---|---|
| Notification Pool Size | 10 |
This is the size of the thread pool used to send notifications. In production this should be around 25-30. ( |
| Notification Thread Pool Threshold | 5000 |
This is the maximum number of notifications in the queue waiting to be sent. The default value should be fine in the majority of installations. ( |
The session service has additional properties to tune, which are configured under Configuration > Servers and Sites > Default Server Settings > Session.
| Property | Default Value | Suggestions |
|---|---|---|
| Maximum Sessions | 5000 |
In production this value can safely be set into the 100,000s. The maximum session limit is really controlled by the maximum size of the JVM heap which must be tuned appropriately to match the expected number of concurrent sessions. ( |
| Sessions Purge Delay | 0 |
This should be zero to ensure sessions are purged immediately. ( |
This section gives some initial guidance on configuring the JVM for running OpenAM. These settings provide a strong foundation to the JVM before a more detailed garbage collection tuning exercise, or as best practice configuration for production.
| JVM Parameters | Suggested Value | Description |
|---|---|---|
| At least 1024m, production environments 2048m to 3072m. This setting depends on the available physical memory, and on whether a 32 or 64-bit JVM is used. | - |
| - | Ensures the server JVM is used |
| Set both to 256m | Controls the size of the permanent generation in the JVM |
| 60000 | Controls the read timeout in the Java HTTP client implementation This applies only to the Sun/Oracle HotSpot JVM. |
| High setting: 30000 (30 seconds) | Controls the connect timeout in the Java HTTP client implementation When you have hundreds of incoming requests per second, reduce this value to avoid a huge connection queue. This applies only to the Sun/Oracle HotSpot JVM. |
| JVM Parameters | Suggested Value | Description |
|---|---|---|
| - | Verbose garbage collection reporting |
|
| Location of the verbose garbage collection log file |
| - | Prints a heap histogram when a SIGTERM signal is received by the JVM |
| - | Prints detailed information about garbage collection |
| - | Prints detailed garbage collection timings |
| - | Out of Memory errors generate a heap dump automatically |
|
| Location of the heap dump |
| - | Use the concurrent mark sweep garbage collector |
| - | Aggressive compaction at full collection |
| - | Allow class unloading during CMS sweeps |
OpenAM caches data to avoid having to query user and configuration data stores each time it needs the information. By default, OpenAM makes use of LDAP persistent search to receive notification of changes to cached data. For this reason, caching works best when data are stored in a directory server that supports LDAP persistent search.
OpenAM has two kinds of cache on the server side that you can configure, one for configuration data and the other for user data. Generally use the default settings for configuration data cache. This section mainly covers the configuration choices you have for caching user data.
OpenAM server has two levels of user data caching. The global user data cache is dirtied by LDAP persistent search. When the global user data cache is enabled (as it is by default), the individual data store caches are not useful because all requests for data go through the global cache. The individual data store caches are therefore only useful when the global user data cache is disabled.
The following diagram depicts the two kinds of cache, and also the two levels of user data caching.
The rest of this section concerns mainly settings for global user data cache and for SDK clients. For a look at data store cache settings, see Table 16.1, “LDAP Data Store Settings”.
By default OpenAM has caching enabled both for configuration data and
also for user data. This setting is governed by the server property
com.iplanet.am.sdk.caching.enabled, which by default is
true. When you set this advanced property to
false, then you can enable caching independently for
configuration data and for user data.
Disabling caching can have a severe negative impact on performance. This is because, when caching is disabled, OpenAM must query a data store each time it needs data.
If, however, you have at least one user data store that does not support LDAP persistent search, such as a relational database or an LDAP directory server that does not support persistent search, then you must disable the global cache for user data. Otherwise user data caches cannot stay in sync with changes to user data entries.
In the OpenAM console, browse to Configuration > Servers and Sites
> Server Name > Advanced.
Set com.iplanet.am.sdk.caching.enabled to
false to disable caching overall.
Set com.sun.identity.sm.cache.enabled to
true to enable configuration data caching.
All supported configuration data stores support LDAP persistent search, so it is safe to enable configuration data caching.
You must explicitly set this property to true,
because setting com.iplanet.am.sdk.caching.enabled to
false in the previous step disables both user and
configuration data caching.
Save your work.
With a large user data store and active user base, the number of user entries in cache can grow large.
In the OpenAM console, browse to Configuration > Servers and Sites > Default Server Settings > SDK.
Change the value of SDK Caching Max. Size, and then Save your work.
There is no corresponding setting for configuration data, as the number of configuration entries in a large deployment is not likely to grow nearly as large as the number of user entries.
Policy agents and other OpenAM SDK clients can also cache user data, using most of the same properties as OpenAM server as described in Table 16.8, “OpenAM Cache Properties” . Clients however can receive updates by notification from OpenAM or, if notification fails, by polling OpenAM for changes.
This procedure describes how to enable change notification and polling for policy agent user data cache updates. When configuring a custom OpenAM SDK client using a .properties file, use the same properties as for the policy agent configuration.
In OpenAM console, browse to Access Control > Realm
Name > Agents > Agent Type
> Agent Name to view and edit the policy
agent profile.
On the Global tab page, check that the Agent Notification URL is set.
When notification is enabled, the agent registers a notification listener with OpenAM for this URL.
The corresponding property is
com.sun.identity.client.notification.url.
On the OpenAM Services tab, check that Enable Notification of User Data Caches is enabled.
The corresponding property is
com.sun.identity.idm.remote.notification.enabled.
On the OpenAM Services tab, check that User Data Cache Polling Time is set.
This ensures that if notifications fail for some reason, the policy agent polls OpenAM for changes.
The corresponding property is
com.iplanet.am.sdk.remote.pollingTime.
For any changes you make, Save your work.
You must restart the policy agent for the changes to take effect.
The table below provides a quick reference, primarily for user data cache settings.
Notice that many properties for configuration data cache have
sm (for Service Management) in their names, whereas those
for user data have idm (for Identity Management) in their
names.
| Property | Description | Default | Applies To |
|---|---|---|---|
| Maximum number of user entries cached | 10000 | Server & SDK |
|
Whether to enable caching for both configuration data and also for user data. If If |
| Server & SDK |
|
How often in minutes the SDK client such as a policy agent should poll OpenAM for modified user data entries. The SDK also uses this value to determine the age of the oldest changes requested. The oldest changes requested are 2 minutes older than this setting. In other words, by default the SDK polls for entries changed in the last 3 minutes. Set this to 0 or a negative integer to disable polling. | 1 (minute) | SDK |
|
How long OpenAM stores a given change to a cached entry, so that clients polling for changes do not miss the change. | 30 (minutes) | Server only |
|
If Otherwise, set this to |
| Server & SDK |
|
How many minutes to store a user data entry in the global user data cache | 30 (minutes) | Server & SDK |
|
Whether user data entries in the global user data cache should expire over time |
| Server & SDK |
|
Whether the SDK client such as a policy agent should register a notification listener for user data changes with the OpenAM server. The SDK client uses the URL specified by
If notifications cannot be enabled for some reason, then the SDK client falls back to polling for changes. |
| SDK |
|
If Otherwise, set this to |
| Server & SDK |
When you change the OpenAM host name, you must make manual changes to the configuration. This chapter describes what to do. If you also must move an embedded configuration directory from one host to another, see the OpenDJ documentation on Moving Servers.
Changing OpenAM host names involves the following high level steps.
Adding the new host name to the Realm/DNS Aliases list
Exporting, editing, then importing the configuration
This step relies on the ssoadm command, which you install separately from OpenAM as described in To Set Up Administration Tools.
Stopping OpenAM and editing configuration files
Removing the old host name from the Realm/DNS Aliases list
Before you start, make sure you have a current backup of your current installation. See Backing Up and Restoring OpenAM Configurations for instructions.
Login to OpenAM console as administrator,
amadmin.
Under Access Control > / (Top Level Realm), add the new host name to the Realm/DNS Aliases list, and then save your work.
Export the service configuration.
$ ssoadm export-svc-cfg -u amadmin -e fZatIu68OiqccJMXosSRyVjMsWJIx+SA -f /tmp/pwd.txt -o config.xml Service Configuration was exported.
In this example, the secret key for encrypting the password in
-e fZatIu68OiqccJMXosSRyVjMsWJIx+SA was taken from the
Password Encryption Key field in the OpenAM console under Configuration >
Servers and Sites > Server Name >
Security.
Edit the service configuration file.
Change the fully qualified domain name, such as
openam.example.com, throughout the file.
If you are changing the deployment descriptor, such as
/openam, then change the value of
com.iplanet.am.services.deploymentDescriptor.
Also change the deployment descriptor in the
propertiesViewBeanURL="
attribute.deployment-descriptor/auth/ACServiceInstanceList"
Also change the deployment descriptor in the
propertiesViewBeanURL="
attribute.deployment-descriptor/auth/ACModuleList"
Also change the deployment descriptor in a <Value> element that is a child of an <AttributeValuePair> element.
Also change the deployment descriptor where it occurs throughout
the file in the full URL to OpenAM, such as
http://openam.example.com:8080/.deployment-descriptor
If you are changing the port number, then change the value of
com.iplanet.am.server.port.
Also change the port number in combinations throughout the
file.host:port
If you are changing the domain name, then change the cookie domain
such as <Value>.example.com</Value>
throughout the file.
Import the updated service configuration.
$ ssoadm import-svc-cfg -u amadmin -e fZatIu68OiqccJMXosSRyVjMsWJIx+SA -f /tmp/pwd.txt -X config.xml Directory Service contains existing data. Do you want to delete it? [y|N] y Please wait while we import the service configuration... Service Configuration was imported.
Stop the web container where OpenAM runs.
Edit the bootstrap file, such as
/home/user/openam/bootstrap, changing the FQDN, port,
and deployment descriptor for OpenAM as necessary.
If you are changing the deployment descriptor, then move the folder
containing OpenAM configuration, such as
/home/user/openam/, to match the new deployment
descriptor, such as /home/user/openam2/.
If you are changing the location or deployment descriptor, change the
name of the file in the /home/user/.openamcfg folder,
such as AMConfig_path_to_tomcat_webapps_openam_
to match the new location and deployment descriptor.
Also edit the path name in the file to match the change you made when moving the folder.
Restart the web container where OpenAM runs.
This chapter identifies best practices for securing your OpenAM deployment.
OpenAM includes default settings to make it easier for you to evaluate the software. Avoid these default settings in production deployments.
When connecting to LDAP, bind with a specific administrative account rather than a root DN account if possible.
Change the default iPlanetDirectoryPro cookie name
both in OpenAM (com.iplanet.am.cookie.name) and in your
policy agent profiles (com.sun.identity.agents.config.cookie.name).
When installing OpenAM, do not use /openam or
/opensso as the deployment URI.
Set valid goto URL domains for OpenAM in the core authentication
module configuration. The parameter is described in the section providing
Hints For the
Core Authentication Module (iplanet-am-auth-valid-goto-domains).
Create an administrator in the top-level realm with a different ID
than the default amadmin.
Create specific administrator users to track better who makes configuration changes.
Set the OpenAM advanced property
openam.auth.soap.rest.generic.authentication.exception
to true. This causes OpenAM to return the same exception
both when the user does not exist, and also when the password is not
valid.
Reduce the opportunity for unauthorized access by exposing only what is necessary.
Do not deploy OpenAM console on Internet-facing servers.
Limit the number of endpoints exposed to the Internet.
To achieve this, deploy only the core server on Internet-facing servers. See Determine Which War File to Deploy.
Even better, further limit what is exposed by deploying only the distributed authentication user interface on Internet-facing servers. See Installing OpenAM Distributed Authentication for installation instructions. The following figure shows the recommended architecture.
If you must provide Internet-facing user access to OpenAM, either use a reverse proxy in front of OpenAM to allow access only to the necessary URLs, or use the distributed authentication user interface. The following figure shows the recommended architecture.
For access to the console, deploy the full OpenAM application[11] on a separate system that is reachable only from internal systems. Do not include the full OpenAM server in the load-balanced pool of OpenAM servers serving applications.
Leave ssoadm.jsp disabled in production. (Advanced
property: ssoadm.disabled=true)
If possible in your deployment, control access to OpenAM console by network address, such that administrators can only connect from well-known systems and networks.
Restrict access to URIs that you do not use, and prevent internal
endpoints such as /sessionservice from being reachable
over the Internet.
Keep administration of access management services separate from management of the services themselves.
Create realms for your organization(s) and separate administrative users from end users. For instructions, see Configuring Realms. You must then either:
Use the realm=
query string parameter when redirecting users to OpenAM, which gives you
a way to isolate the URLs used by an application.realm-name
Create fully qualified domain name realm/DNS aliases, and use them to control access to the realms.
When customizing config/auth/default*/Login.jsp,
make sure that you do not introduce any security vulnerabilities such as
cross-site scripting due to unvalidated input.
Create a policy agent profile for each policy agent. See Configuring Policy Agent Profiles for instructions.
Keep communications secure by using encryption, properly configured cookies, and request and response signatures.
Protect network traffic by using HTTPS and LDAPS where possible.
When using HTTPS, use secure cookies.
Where possible, use subdomain cookies, and control subdomains in a specific DNS master.
Use cookie hijacking protection with restricted tokens, where each policy agent uses different SSO tokens for the same user. See To Protect Against CDSSO Cookie Hijacking for instructions.
When using SAML 2.0:
Sign authentication requests, authentication responses, and single logout requests.
If the other entities in your circle of trust can handle encryption, then use encryption as well.
Use your own key, not the test key provided with
OpenAM.
You can make changes to the password and user name for the main OpenAM administrative account.
You can change the user name of the amadmin administrative account
to something more obscure, such as superroot. However, the capabilities of that alternative administrative
account would not be complete, due to some hard-coding of amadmin in the source files.
When changing the password for the main OpenAM administrative account, you must make a corresponding change
to the authentication datastore. That datastore could be OpenDJ. The steps you would take to change
the OpenAM top-level administrative password and account name are shown in the following sections.
amadmin)Login to the OpenAM console as the administrator, normally
amadmin.
Under Access Control > / (Top Level Realm) > Subjects > User, select the name of the current top-level administrative user.
In the page that appears, navigate to the Password row and click Edit.
In the window that appears, enter the desired new password in the New Password and Re-Enter Password text boxes.
Click OK to implement the change. If you want to cancel, click Close or just close the window.
You'll also need to change the password for the administrator on the directory server. If you are using OpenDJ, refer to the OpenDJ 2.5.0 Administration Guide section on Resetting Administrator Passwords. If you are using a different directory server, you will have to refer to the documentation for that server.
In the following steps, you will identify the new administrative user by assigning it to the
com.sun.identity.authentication.super.user directive. You may also need to create an
OpenAM account for the new administrative user. Don't forget to make sure that new administrative
account is configured in the corresponding directory server such as OpenDJ.
amadmin)Login to the OpenAM console as the administrator, normally
amadmin.
Navigate to the page where you can set the properties for different classes. Select
Configuration > Servers and Sites > Server Name > Advanced.
In the Advanced Properties window that appears, click Add.
You'll see blank entries in the end of the list of Property Names and Property Values. In the
empty Property Name text box, enter com.sun.identity.authentication.super.user.
In the corresponding Property Values test box, enter appropriate values for the new administrative
user in LDAP Data Interchange Format (LDIF). For example, the following entry would set up an
administrative user named superroot, in the organizational unit named
peoplepeople, associated with the example.com domain:
uid=superroot,ou=people,dc=example,dc=com.
Click Save to save the changes that you've made.
If the account doesn't already exist in OpenAM or on a connected directory server, you'll need to create it. To do so, select Access Control > / (Top Level Realm) > Subject > User > New. In the New User window that appears, create the new user. Make sure to enter an appropriate password and make that user Active. The ID for that new user is the user name.
As noted earlier, you'll also need to make sure that the corresponding account on the directory server has at least CN=Directory Manager privileges. If you're using OpenDJ, refer to the chapter on Configuring Privileges & Access Control in the OpenDJ Administration Guide.
If you do change the account name of the top-level administrative account, you should be aware that the
original amadmin account is "hard-coded" in the source code of several files.
The code in these files may affect the functionality of a top-level administrative user
with a name other than amadmin.
One of the improvements that we plan to make to OpenAM is to eliminate these instances of hard-coding. Until we make such improvements, the amadmin user would retain privileges related to the LoginState and some IDM-related classes.
This chapter covers how to get debugging information and troubleshoot issues in OpenAM deployments.
This section offers solutions to common problems when working with OpenAM.
19.1. OpenAM Installation | |
Q: | OpenAM configuration could not write to the configuration directory. Where must I change permissions, and what permissions are required? |
A: | If the user running the web container has a $HOME directory, then
the configuration directory is stored there, and you probably do not have
this problem. If you do not know the user running the web container, use
the ps command to check. In the following example, the
user is $ ps -ef | grep tomcat mark 1739 1 0 14:47... For a container installed from native packages with a dedicated
user, $HOME may not be where you think it is. Look at the user's entry in
If you cannot change the permissions to the user's home directory,
you can, as a workaround, unpack $ cd ~/Downloads/openam/openam-server-10.2.0-SNAPSHOT.war $ mkdir unpacked ; cd unpacked $ jar xf ../openam-server-10.2.0-SNAPSHOT.war $ vi WEB-INF/classes/bootstrap.properties $ grep ^config WEB-INF/classes/bootstrap.properties configuration.dir=/my/readwrite/config/dir $ jar cf ../openam.war * |
Q: | Deployment failed due to lack of memory. What do I do? |
A: | OpenAM requires at least a maximum heap size of 1024 MB, with a 256
MB maximum permanent generation heap size. For the Sun JVM, ensure the
container starts with If you do not know the settings used when the web container was
started, use the ps command to check. In the following
example, the web container is $ ps -ef | grep tomcat | grep Xm ... -Xmx1024m -XX:MaxPermSize=256m ... Make sure you have at least 2 GB of RAM on the system where you run OpenAM to avoid running out of memory. If you make it through deployment and seem to be running out of
memory later, you can confirm memory errors in OpenAM by searching the
|
Q: | Deployment failed due to invalid hostname configuration. What do I do? |
A: | OpenAM requires that you use a fully qualified domain name (FQDN) that the host can resolve. $ ping openam-ter.example.com PING openam-ter (192.168.56.2) 56(84) bytes of data. 64 bytes from openam (192.168.56.2): icmp_seq=1 ttl=64 time=0.025 ms 64 bytes from openam (192.168.56.2): icmp_seq=2 ttl=64 time=0.032 ms 64 bytes from openam (192.168.56.2): icmp_seq=3 ttl=64 time=0.030 ms For a test deployment (at home, on a laptop), you can use fake FQDNs
in $ cat /etc/hosts | grep openam 192.168.56.2 openam openam.example.com 192.168.56.3 openam-bis openam-bis.example.com 192.168.56.5 openam-ter openam-ter.example.com |
Q: | I configured OpenAM, and now am seeing the configuration screen again. Who deleted my configuration? |
A: | OpenAM uses a file in $ cat .openamcfg/AMConfig_path_to_tomcat_webapps_openam_ /home/amuser/openam If OpenAM cannot find its configuration, then it displays the configuration screen. |
19.2. OpenAM Administration | |
Q: | I cannot use the browser-based equivalent of
ssoadm,
|
A: | For security reasons, |
Q: | The ssoadm command is very, very slow on my virtual machine (VMWare, VirtualBox, etc.). How can I speed it up? |
A: | Virtual machine random devices do not always produce enough random data. The ssoadm command can hang while reading random data from the virtual machine's random device, with the result that you can wait a minute or more for a single command to finish. To work around this limitation on virtual machines, make sure you install something that generates enough random data, such as a timer entropy daemon. |
Q: | I added OpenDJ as a data store, and now I cannot add a user. OpenAM gives me the following error. ERROR: LDAPv3Repo.create failed. errorCode=65 Entry |
A: | When you set up a New Data Store to use OpenDJ as an identity
repository under Access Control > The full version of OpenAM includes directory server schema in the
$ /path/to/OpenDJ/bin/ldapmodify --port 1389 --bindDN "cn=Directory Manager" --bindPassword password --filename ~/Downloads/openam/ldif/fam_sds_schema.ldif Processing MODIFY request for CN=schema MODIFY operation successful for DN CN=schema |
Q: | I have session failover configured for an OpenAM site. I see many
connections in |
A: | When you have session failover configured for a site, OpenAM servers run health checks against other servers in the same site. By default, the health checks are run every second (1000 milliseconds) with a timeout of 1 second (1000 milliseconds). If there is network latency between servers in a site, for example if you are running your servers in virtual machines, the default settings might not be right for your deployment. In that case, consider changing the following advanced server properties.
To set advanced properties, either use the OpenAM console page under Configuration > Servers and Sites > Default Server Settings > Advanced, or set the properties using the ssoadm update-server-cfg command as in the following example, which updates the default server configuration: $ ./ssoadm update-server-cfg -s default -u amadmin -f /tmp/pwd.txt -a com.iplanet.am.session.failover.cluster.stateCheck.timeout=2000 |
User having privileges only to read and write policy agent profile configuration information, typically created to delegate policy agent profile creation to the user installing a policy agent
The act of confirming the identity of a principal
OpenAM authentication unit that handles one way of obtaining and verifying credentials
A series of authentication modules configured together which a principal must negotiate as configured in order to authenticate successfully
Control to grant or to deny access to a resource
The act of making an account temporarily or permanently inactive after successive authentication failures
Entity with read-only access to multiple agent profiles defined in the same realm; allows an agent to read web service profiles
In the context of OpenAM entitlements, protected resources that share a common set of actions and related policies
Access control that is based on attributes of a user, such as how old a user is or whether she is a paying customer
Positive integer associated with an authentication module, usually used to require success with more stringent authentication measures when requesting resources requiring special protection
The act of determining whether to grant or to deny a principal access to a resource
In OAuth 2.0, issues access tokens to the client after authenticating a resource owner and confirming that the owner authorizes the client to access the protected resource. OpenAM can play this role in the OAuth 2.0 authorization framework.
Arrangement to federate a principal's identity automatically based on a common attribute value shared across the principal's profiles at different providers
Batch job permanently federating user profiles between a service provider and an identity provider based on a list of matched user identifiers that exist on both providers
Group of providers, including at least one identity provider, who have agreed to trust each other to participate in a SAML 2.0 provider federation
In OAuth 2.0, requests protected web resources on behalf of the resource owner given the owner's authorization. OpenAM can play this role in the OAuth 2.0 authorization framework.
Optional conditions under which a policy applies
LDAP directory service holding OpenAM configuration data
OpenAM capability allowing single sign on across different DNS domains
In the context of OpenAM entitlements, a means of granting specific users privileges to manage policies
XACML-based policy
Federation configuration information specific to OpenAM
Standard, XML-based access control policy language, including a processing model for making authorization decisions based on policies
Standardized means for aggregating identities, sharing authentication and authorization data information between trusted providers, and allowing principals to access services across different providers without authenticating repeatedly
Service provider application capable of participating in a circle of trust and allowing federation without installing all of OpenAM on the service provider side; OpenAM lets you create both .NET and Java Fedlets.
Refers to configuration properties for which changes can take effect without restarting the container where OpenAM runs
Set of data that uniquely describes a person or a thing such as a device or an application
Linking of a principal's identity across multiple providers
Entity that produces assertions about a principal (such as how and when a principal authenticated, or that the principal's profile has a specified attribute value)
Data store holding user profiles and group information; different identity repositories can be defined for different realms.
Java web application installed in a web container that acts as a policy agent, filtering requests to other applications in the container with policies based on application resource URLs
Federation configuration information for a provider
Set of rules that define who is granted access to a protected resource when, how, and under what conditions
Entity that manages and stores policy definitions
Agent that intercepts requests for resources, directs principals to OpenAM for authentication, and enforces policy decisions from OpenAM
Entity that evaluates access rights and then issues authorization decisions
Entity that intercepts a request for a resource and then enforces policy decisions from a PDP
Entity that provides extra information such as user profile attributes that a PDP needs in order to make a decision
Entity that can be authenticated (such as a user, a device, or an application)
Agreement among providers to participate in a circle of trust
OpenAM unit for organizing configuration and identity information, making it possible to delegate administration for part of OpenAM configuration; realms can be used for example when different parts of an organization using OpenAM have different policies and different identity repositories
Means to delegate policy management and decision making for a realm
Something a principal can access over the network such as a web page
In OAuth 2.0, entity who can authorize access to protected web resources, such as an end user
In OAuth 2.0, server hosting protected web resources, capable of handling access tokens to respond to requests for such resources
Policy extensions that define additional information to return in an authorization decision beyond "allow" or "deny"
Access control that is based on whether a user has been granted a set of permissions (a role)
Definitions identifying how a policy matches resources to which access is granted or denied
Standard, XML-based language for exchanging authentication and authorization data between identity providers and service providers
Entity that consumes assertions about a principal (and provides a service that the principal is trying to access)
In OpenAM a user session is the interval that starts with the user authenticating through OpenAM and ends when the user logs out, or when her session is terminated. OpenAM manages user sessions across one or more applications by issuing a session token used to identify the session and by tracking the session state in order to handle session events like logout and timeout, to permit session constraints, and to notify applications involved in SSO when a session ends.
Capability to allow another OpenAM server to manage a session when the OpenAM server that initially authenticated the principal goes offline
Unique identifier issued by OpenAM after successful authentication, used to track a principal's session
Capability allowing a principal to end a session once, thereby ending her session across multiple applications
Capability allowing a principal to authenticate once and gain access to multiple applications without authenticating again
Standard federation configuration information that you can share with other access management software
Entity that can request access to a resource
Data storage service holding principals' profiles; underlying storage
can be an LDAP directory service, a relational database, or a custom
IdRepo implementation
Native library installed in a web server that acts as a policy agent with policies based on web page URLs