<%-- DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. Copyright (c) 2011-2014 ForgeRock AS. All Rights Reserved The contents of this file are subject to the terms of the Common Development and Distribution License (the License). You may not use this file except in compliance with the License. You can obtain a copy of the License at http://forgerock.org/license/CDDLv1.0.html See the License for the specific language governing permission and limitations under the License. When distributing Covered Code, include this CDDL Header Notice in each file and include the License file at http://forgerock.org/license/CDDLv1.0.html If applicable, add the following below the CDDL Header, with the fields enclosed by brackets [] replaced by your own identifying information: "Portions Copyrighted [year] [name of copyright owner]" --%> <%@ page language="java" %> <%@ page import="com.iplanet.sso.SSOToken" %> <%@ page import="com.sun.identity.sm.*" %> <%@ page import="java.util.*" %> OpenAM
Jump to End of Masthead
OpenAM
Jump to End of Masthead
<%@ include file="/WEB-INF/jsp/admincheck.jsp" %> <% SSOToken ssoToken = requireAdminSSOToken(request, response, out, "showServerConfig.jsp"); if (ssoToken == null) { %> <% return; } %>

OpenAM Service Attributes

In order to translate configuration changes made in OpenAM console to ssoadm commands, you must first match the GUI settings to service attributes used by ssoadm. This page lists available service attributes, including their labels and online help from OpenAM console where available. Service attributes apply according to their type:

Dynamic
Applies to a role or a realm
Global
Applies to the entire OpenAM server
Organization
Applies to a realm

To find the service attribute that corresponds to a particular GUI setting, click Expand below, and then search for the label of the GUI setting within this page.

For example, suppose you changed Maximum Session Time in the OpenAM console to 240 seconds. You search this page for Maximum Session Time and find the dynamic attribute iplanet-am-session-max-session-time on the iPlanetAMSessionService service. To set maximum session time to 240 seconds by script, you use the following command.

ssoadm set-attr-defs -u amadmin -f /tmp/pwd.txt -s iPlanetAMSessionService \
 -t dynamic -a "iplanet-am-session-max-session-time=240"


Expand all
 | 
Collapse all

<% ServiceManager sm = new ServiceManager(ssoToken); Set serviceNames = sm.getServiceNames(); for (Object o : serviceNames) { String serviceName = o.toString(); out.println("
"); out.println("
" + serviceName + "
"); out.println("
"); // Assume version 1.0 (as of 2012-06 all services are version 1.0) ServiceConfigManager scm = sm.getConfigManager(serviceName, "1.0"); Set instances = scm.getInstanceNames(); // To list instances // for (String instance : instances) { // out.println("Instance: " + instance + ""); // } ServiceSchemaManager ssm = sm.getSchemaManager(serviceName, "1.0"); if (ssm != null) { Map serviceSchemaList = new HashMap(); ServiceSchema dynamic = ssm.getDynamicSchema(); if (dynamic != null) { serviceSchemaList.put("Dynamic", dynamic); } ServiceSchema global = ssm.getGlobalSchema(); if (global != null) { serviceSchemaList.put("Global", global); } ServiceSchema org = ssm.getOrganizationSchema(); if (org != null) { serviceSchemaList.put("Organization", org); } for (String schemaType : serviceSchemaList.keySet()) { ServiceSchema ss = serviceSchemaList.get(schemaType); String i18nFilename = ss.getI18NFileName(); ResourceBundle bundle = ResourceBundle.getBundle(i18nFilename); if (ss != null) { Set serviceAttributeNames = ss.getServiceAttributeNames(); // Ignore this schema if it is empty if (serviceAttributeNames == null || serviceAttributeNames.isEmpty()) { continue; } out.println("
" + schemaType + "
"); out.println("
"); boolean rowAlternator = true; for (String s : serviceAttributeNames) { // Alternating row backgrounds rowAlternator = !rowAlternator; AttributeSchema as = ss.getAttributeSchema(s); out.println("
"); if (rowAlternator) out.println("
"); else out.println("
"); out.println("
" + s + "
"); try { if (as.getI18NKey() != null) out.println("
" + bundle.getString(as.getI18NKey()) + "
"); } catch (MissingResourceException mre) { out.println("
" + s + " (missing description)
"); } try { if (as.getI18NKey() != null) out.println("
" + bundle.getString(as.getI18NKey().concat(".help")) + "
"); } catch (MissingResourceException mre) { } out.println("
"); out.println("
"); } out.println("
"); out.println("
"); } } } out.println("
"); } %>