Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-23213

Enable or disable SSO using Ambari CLI with options

    XMLWordPrintableJSON

Details

    Description

      To enable or disable SSO using the Ambari CLI, the user needs to answer each prompt. This is not convenient for automated tools. So the following command line options should be available for use. If any mandatory option is not specified via the command line, the user should be prompted for a value.

      Global SSO options:

      • --sso-enabled

      if sso-enabled is "true":

      • --sso-provider-url
      • --sso-public-cert-file
      • --sso-jwt-cookie-name
        • optional, if not supplied, the documented default value will be used
      • --sso-jwt-audience-list
        • optional, if not supplied, the documented default value will be used
      Examples
      ambari-server setup-sso --help
      
      ambari-server setup-sso --sso-enabled=true --sso-provider-url=https://knox.ambari.apache.org:8443 --sso-public-cert-file=/tmp/sso.pem
      
      ambari-server setup-sso --sso-enabled=true --sso-provider-url=https://knox.ambari.apache.org:8443 --sso-public-cert-file=/tmp/sso.pem --sso-jwt-cookie-name=ambari-jtw 
      
      ambari-server setup-sso --sso-enabled=true --sso-provider-url=https://knox.ambari.apache.org:8443 --sso-public-cert-file=/tmp/sso.pem --sso-jwt-cookie-name=ambari-jtw --sso-jwt-audience-list=ambari
      
      ambari-server setup-sso --sso-enabled=true --sso-provider-url=https://knox.ambari.apache.org:8443 --sso-public-cert-file=/tmp/sso.pem
      
      ambari-server setup-sso --sso-enabled=false
      

      Attachments

        Issue Links

          Activity

            People

              smolnar Sandor Molnar
              smolnar Sandor Molnar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m