how to use Amster to export/import from bash script

Tagged: ,

This topic has 0 replies, 1 voice, and was last updated 1 year, 1 month ago by soma.

  • Author
  • #28683


    I am learning how to use Amster in Docker.
    I have a docker image with Tomcat 9.0 + deployed openam.war v7.1. The initial OpenAM configuration is done by this:

    $JAVA_HOME/bin/java -jar openam-tools/configuration-tool/openam-configurator-tool- --file openam-tools/configuration-tool/$JAVA_HOME/lib/security/cacerts

    That works, I have a nice OpenAM in Docker with the default settings.
    Then I am changing the settings of the OpenAM and when I see that my configuration is okay, I do an export manually with the following commands:

    am> connect --interactive
    Sign in
    User Name: amadmin
    Password: ********
    amster> export-config --path /tmp/my-realm --failOnError true

    Then I would like to have a simple Amster import command that I can execute from a bash script without any user interaction. I see in your doc that for the user/pass I can use Private Key Connection option described here, but how to specify the openam URL and the import command itself with the path?

    I would like to have something like this:
    amster -url -user amadmin -password password -import /home/my/openam-export

    Can I have somehow an Amster described above?

    • This topic was modified 1 year, 1 month ago by soma.
    • This topic was modified 1 year, 1 month ago by soma.
    • This topic was modified 1 year, 1 month ago by soma.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?