Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-10451

Could not get OpenDJ 2.6.4 to work with OpenAM 14.0.0M10 for External CTS setup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 14.0.0
    • Fix Version/s: None
    • Component/s: documentation, qa
    • Labels:
    • Environment:
      OpenDJ 2.6.4 OpenAM14.0.0-M10
    • Sprint:
      Copernicus 14.0.0-M30

      Description

      Following Instructions for setting up OpenDJ 2.6.4 with OpenAM 14.0.0M10 seems to fail. The instructions I am using are based on https://wikis.forgerock.org/confluence/display/openam/Configure+External+CTS and I used the following script

      USER="cn=Directory Manager"
      PASS="password"
      SERVER_PORT=389
      TOMCAT_OPENAM_WEBAPP=/opt/forgerock/sfha
      ROOT_SUFFIX="dc=forgerock,dc=com"
      T=/tmp/ldif
      rm -rf $T
      mkdir $T
      cp $TOMCAT_OPENAM_WEBAPP/cts-add-schema.ldif $T/cts-add-schema.ldif
      cp $TOMCAT_OPENAM_WEBAPP/cts-add-multivalue.ldif $T/cts-add-multivalue.ldif
      cat $TOMCAT_OPENAM_WEBAPP/cts-add-multivalue-indices.ldif | sed -e 's/@DB_NAME@/userRoot/' > $T/cts-add-multivalue-indices.ldif
      cat $TOMCAT_OPENAM_WEBAPP/cts-indices.ldif | sed -e 's/@DB_NAME@/userRoot/' > $T/cts-indices.ldif
      cat $TOMCAT_OPENAM_WEBAPP/cts-container.ldif | sed -e "s/@SM_CONFIG_ROOT_SUFFIX@/$ROOT_SUFFIX/" > $T/cts-container.ldif
      bin/ldapmodify --port $SERVER_PORT --bindDN "$USER" --bindPassword "$PASS" --fileName $T/cts-add-schema.ldif
      bin/ldapmodify --port $SERVER_PORT --bindDN "$USER" --bindPassword "$PASS" --defaultAdd --fileName $T/cts-indices.ldif
      bin/ldapmodify --port $SERVER_PORT --bindDN "$USER" --bindPassword "$PASS" --defaultAdd --fileName $T/cts-container.ldif
      bin/ldapmodify --port $SERVER_PORT --bindDN "$USER" --bindPassword "$PASS" --fileName $T/cts-add-multivalue.ldif
      bin/ldapmodify --port $SERVER_PORT --bindDN "$USER" --bindPassword "$PASS" --defaultAdd --fileName $T/cts-add-multivalue-indices.ldif
      sudo bin/stop-ds
      sudo bin/rebuild-index --baseDN $ROOT_SUFFIX --rebuildAll
      sudo bin/verify-index --baseDN $ROOT_SUFFIX
      sudo bin/start-ds
      

      The resulting error was:

      Processing MODIFY request for cn=schema
      MODIFY operation successful for DN cn=schema
      Processing ADD request for ds-cfg-attribute=coreTokenExpirationDate,cn=Index,ds-cfg-backend-id=userRoot,cn=Backends,cn=config
      ADD operation failed
      Result Code:  65 (Object Class Violation)
      Additional Information:  Entry ds-cfg-attribute=coreTokenExpirationDate,cn=Index,ds-cfg-backend-id=userRoot,cn=Backends,cn=config violates the Directory Server schema configuration because it does not include a structural objectclass.  All entries must contain a structural objectclass
      Processing ADD request for ou=tokens,dc=forgerock,dc=com
      ADD operation successful for DN ou=tokens,dc=forgerock,dc=com
      Processing ADD request for ou=openam-session,ou=tokens,dc=forgerock,dc=com
      ADD operation successful for DN ou=openam-session,ou=tokens,dc=forgerock,dc=com
      Processing ADD request for ou=famrecords,ou=openam-session,ou=tokens,dc=forgerock,dc=com
      ADD operation successful for DN ou=famrecords,ou=openam-session,ou=tokens,dc=forgerock,dc=com
      Processing MODIFY request for cn=schema
      MODIFY operation successful for DN cn=schema
      Processing ADD request for ds-cfg-attribute=coreTokenMultiString01,cn=Index,ds-cfg-backend-id=userRoot,cn=Backends,cn=config
      ADD operation failed
      Result Code:  65 (Object Class Violation)
      Additional Information:  Entry ds-cfg-attribute=coreTokenMultiString01,cn=Index,ds-cfg-backend-id=userRoot,cn=Backends,cn=config violates the Directory Server schema configuration because it does not include a structural objectclass.  All entries must contain a structural objectclass
      

        Attachments

          Activity

            People

            • Assignee:
              edward.barker edwardb
              Reporter:
              edward.barker edwardb
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: