ForgeRock Identity Platform 7.3

Shared identity store

This deployment uses a single external DS server as:

  • The AM configuration store.

  • The AM identity store.

  • The IDM identity store.

The IDM End User UI is not supported in a platform deployment, as it does not support authentication through AM.

You can use the Set up the platform UIs with this deployment, or create your own UIs that support authentication through AM.

Download DS

Follow the instructions in the DS documentation to download DS, and prepare for installation.

The instructions that follow assume you download the cross-platform .zip distribution.

Set up DS

  1. Unpack the DS files you downloaded.

  2. Generate and save a unique DS deployment ID:

    /path/to/opendj/bin/dskeymgr create-deployment-id --deploymentIdPassword password

    You will need the deployment ID and password to install DS, and to export the server certificate.

    Set the deployment ID in your environment:

    export DEPLOYMENT_ID=deployment-id
  3. Install a DS server with the necessary setup profiles:

    • am-config

    • am-cts

    • am-identity-store

    • idm-repo

    For more information about DS setup profiles, refer to setup profiles in the DS documentation.

    /path/to/opendj/setup \
    --deploymentId $DEPLOYMENT_ID \
    --deploymentIdPassword password \
    --rootUserDN uid=admin \
    --rootUserPassword str0ngAdm1nPa55word \
    --monitorUserPassword str0ngMon1torPa55word \
    --hostname directory.example.com \
    --adminConnectorPort 4444 \
    --ldapPort 1389 \
    --enableStartTls \
    --ldapsPort 1636 \
    --profile am-config \
    --set am-config/amConfigAdminPassword:5up35tr0ng \
    --profile am-cts \
    --set am-cts/amCtsAdminPassword:5up35tr0ng \
    --set am-cts/tokenExpirationPolicy:am-sessions-only \
    --profile am-identity-store \
    --set am-identity-store/amIdentityStoreAdminPassword:5up35tr0ng \
    --profile idm-repo \
    --set idm-repo/domain:forgerock.io \
    --acceptLicense

    For simplicity, this example uses a standalone directory server that does not replicate directory data (no --replicationPort or --bootstrapReplicationServer options). In production deployments, replicate directory data for availability and resilience.

    For details, refer to the DS installation documentation.

  4. Start the DS server:

    /path/to/opendj/bin/start-ds

Set up a container

Install a Java container to deploy AM.

These deployment examples assume that you are using Apache Tomcat:

  1. Follow the instructions in the AM documentation to prepare your environment.

  2. Use a supported version of Apache Tomcat as the web application container:

    1. Configure Tomcat to listen on port 8081.

      This non-default port requires that you update Tomcat’s conf/server.xml file. Instead of the default line, <Connector port="8080" protocol="HTTP/1.1">, use:

      <Connector port="8081" protocol="HTTP/1.1">
    2. Create a Tomcat bin/setenv.sh or bin\setenv.bat file to hold your environment variables.

    3. Follow the instructions in the AM documentation to prepare Tomcat as the web application container.

For complete instructions on setting up Tomcat, see Apache Tomcat in the AM documentation.

Secure connections

From DS 7 onwards, you must secure connections to DS servers.

  1. Create a new directory that will house a dedicated truststore for AM:

    mkdir -p /path/to/openam-security/
  2. Export the DS server certificate.

    You must run this command on directory.example.com in the terminal window where you set the DEPLOYMENT_ID variable:

    /path/to/opendj/bin/dskeymgr export-ca-cert \
    --deploymentId $DEPLOYMENT_ID \
    --deploymentIdPassword password \
    --outputFile ds-ca-cert.pem
  3. Import the DS server certificate into the dedicated AM truststore.

    If you are not testing this example on a single host, you might need to copy each certificate file onto the AM host machine first:

    keytool \
    -importcert \
    -trustcacerts \
    -alias ds-ca-cert \
    -file /path/to/ds-ca-cert.pem \
    -keystore /path/to/openam-security/truststore \
    -storepass changeit \
    -storetype JKS
    Owner: CN=Deployment key, O=ForgeRock.com
    Issuer: CN=Deployment key, O=ForgeRock.com
    ...
    Trust this certificate? [no]:  yes
    Certificate was added to keystore
  4. List the certificates in the new truststore and verify that the certificate you added is there:

    keytool \
    -list \
    -keystore /path/to/openam-security/truststore \
    -storepass changeit
  5. Point Apache Tomcat to the path of the new truststore so that AM can access it.

    Append the truststore settings to the CATALINA_OPTS variable in the Tomcat bin/setenv.sh file; for example:

    CATALINA_OPTS="-Djavax.net.ssl.trustStore=/path/to/openam-security/truststore \
    -Djavax.net.ssl.trustStorePassword=changeit \
    -Djavax.net.ssl.trustStoreType=jks"

    Refer to your specific container’s documentation for information on configuring truststores.

  6. Verify secure authentication to the DS server with the dedicated AM accounts:

    /path/to/opendj/bin/ldapsearch \
    --hostname directory.example.com \
    --port 1636 \
    --useSsl \
    --useJavaTrustStore /path/to/openam-security/truststore \
    --trustStorePassword changeit \
    --bindDn uid=am-config,ou=admins,ou=am-config \
    --bindPassword 5up35tr0ng \
    --baseDn ou=am-config \
    "(&)" \
    1.1
    dn: ou=am-config
    
    dn: ou=admins,ou=am-config
    
    dn: uid=am-config,ou=admins,ou=am-config
    
    /path/to/opendj/bin/ldapsearch \
    --hostname directory.example.com \
    --port 1636 \
    --useSsl \
    --useJavaTrustStore /path/to/openam-security/truststore \
    --trustStorePassword changeit \
    --bindDn uid=am-identity-bind-account,ou=admins,ou=identities \
    --bindPassword 5up35tr0ng \
    --baseDn ou=identities \
    "(&)" \
    1.1
    dn: ou=identities
    
    dn: ou=people,ou=identities
    
    dn: ou=groups,ou=identities
    
    dn: ou=admins,ou=identities
    
    dn: uid=am-identity-bind-account,ou=admins,ou=identities
Copyright © 2010-2023 ForgeRock, all rights reserved.