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

ssoadm create-datastore doesn't work with custom DataStore Types

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Not a defect
    • Affects Version/s: 9.5.4
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:
    • Environment:
      CentOS 6.3 (64-bit)
      Oracle JDK 1.6.0_32 (64-bit)
      Tomcat 7.0.22
      OpenDJ 2.4.5
    • Rank:
      1|hzlw7j:
    • Support Ticket IDs:

      Description

      The behaviour described in http://java.net/jira/browse/OPENSSO-6020 still exists.

      For example:

      -sh-4.1$ ./ssoadm list-datastore-types -u amadmin -f password

      Supported Datastore Types:
      Description Type
      ---------------------------------------- ---------------------
      Database Repository (Early Access) Database
      Active Directory Application Mode (ADAM) LDAPv3ForADAM
      Active Directory LDAPv3ForAD
      Tivoli Directory Server LDAPv3ForTivoli
      Cosmos OpenDJ Repository CosmosLDAPv3ForOpenDJ
      Sun DS with OpenAM schema LDAPv3ForAMDS
      OpenDS LDAPv3ForOpenDS

      -sh-4.1$ ./ssoadm create-realm -e test -u amadmin -f password

      Realm was created.
      -sh-4.1$ ./ssoadm create-datastore -e test -m OpenDJ -t cosmosOpenDJRepository -D /opt/openam/amconf/datastore_users.conf -u amadmin -f password

      Unable to add subConfig OpenDJ
      -sh-4.1$ ./ssoadm create-datastore -e test -m OpenDJ -t cosmosOpenDJRepository -D /opt/openam/amconf/datastore_users.conf -u amadmin -f password -v
      Process Request ...
      Constructing Request Context...
      Validating mandatory options...
      Processing Sub Command ...

      Executing class, com.sun.identity.cli.datastore.CreateDataStore.
      Authenticating...
      Authenticated.
      com.sun.identity.cli.CLIException: Unable to add subConfig OpenDJ
      at com.sun.identity.cli.datastore.CreateDataStore.handleRequest(CreateDataStore.java:113)
      at com.sun.identity.cli.SubCommand.execute(SubCommand.java:291)
      at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:212)
      at com.sun.identity.cli.CLIRequest.process(CLIRequest.java:134)
      at com.sun.identity.cli.CommandManager.serviceRequestQueue(CommandManager.java:575)
      at com.sun.identity.cli.CommandManager.<init>(CommandManager.java:173)
      at com.sun.identity.cli.CommandManager.main(CommandManager.java:150)
      Unable to add subConfig OpenDJ

      The datastore creates successfully through the console, and native DataStores create successfully with ssoadm.

        Attachments

          Activity

            People

            • Assignee:
              peter.major Peter Major [X] (Inactive)
              Reporter:
              gregm gregm
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: