Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0
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
Attachments
Issue Links
- is related to
-
AMBARI-8734 Create a more secure way to obtain and handle KDC administrator credentials
- Resolved
- links to