how to use Amster to export/import from bash script

Tagged: ,

This topic has 0 replies, 1 voice, and was last updated 2 months, 3 weeks ago by soma.

  • Author
    Posts
  • #28683
     soma
    Participant

    Hello,

    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-14.1.3.10.jar --file openam-tools/configuration-tool/openam-7.1-initial-config.properties -Djavax.net.ssl.trustStore=$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:

    
    ./amster
    am> connect --interactive https://openam.hello.com:8443/openam
    Sign in
    User Name: amadmin
    Password: ********
    amster openam.hello.com:8443> 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 https://openam.hello.com:8443/openam -user amadmin -password password -import /home/my/openam-export

    Can I have somehow an Amster described above?

    • This topic was modified 2 months, 3 weeks ago by soma.
    • This topic was modified 2 months, 3 weeks ago by soma.
    • This topic was modified 2 months, 3 weeks ago by soma.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

©2021 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?