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

Design admin principal session expiration handling API call

    XMLWordPrintableJSON

Details

    Description

      Provide the standard error code that will be returned along with the error message.

      If administrative credentials are not available

      400 Bad Request
      {
        "status" : 400,
        "message" : "java.lang.IllegalArgumentException: Missing KDC administrator credentials.\nThe KDC administrator credentials must be set in session by updating the relevant Cluster resource.This may be done by issuing a PUT to the api/v1/clusters/(cluster name) API entry point with the following payload:\n{\n  \"session_attributes\" : {\n    \"kerberos_admin\" : {\"principal\" : \"(PRINCIPAL)\", \"password\" : \"(PASSWORD)\"}\n  }\n}"
      }
      

      If administrative credentials are not valid, for example, incorrect principal or password (or keytab)

      400 Bad Request
      {
        "status" : 400,
        "message" : "java.lang.IllegalArgumentException: Invalid KDC administrator credentials.\nThe KDC administrator credentials must be set in session by updating the relevant Cluster resource.This may be done by issuing a PUT to the api/v1/clusters/(cluster name) API entry point with the following payload:\n{\n  \"session_attributes\" : {\n    \"kerberos_admin\" : {\"principal\" : \"(PRINCIPAL)\", \"password\" : \"(PASSWORD)\"}\n  }\n}"
      }
      

      Attachments

        1. AMBARI-9014_02.patch
          141 kB
          Robert Levas
        2. AMBARI-9014_01.patch
          19 kB
          Robert Levas

        Issue Links

          Activity

            People

              rlevas Robert Levas
              rlevas Robert Levas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: