[ 
https://issues.apache.org/jira/browse/AMBARI-9014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Levas updated AMBARI-9014:
---------------------------------
    Attachment: AMBARI-9014_01.patch

* Added checks for missing or invalid KDC administrator credentials
* Added 
{{org.apache.ambari.server.serveraction.kerberos.KerberosOperationHandler#testAdministratorCredentials}}
* Injected KerberosOperationHandlerFactory rather than explicitly used static 
methods of the class in order to create better tests

Patch File [^AMBARI-9014_01.patch]

> Design admin principal session expiration handling API call
> -----------------------------------------------------------
>
>                 Key: AMBARI-9014
>                 URL: https://issues.apache.org/jira/browse/AMBARI-9014
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Robert Levas
>            Assignee: Robert Levas
>              Labels: kdc_credentials, kerberos
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-9014_01.patch
>
>
> Provide the standard error code that will be returned along with the error 
> message.
> If administrative credentials are not available
> {code:title=400 Bad Request}
> {
>   "status" : 400,
>   "message" : "java.lang.IllegalArgumentException: Missing KDC administrator 
> credentials"
> }
> {code}
> If administrative credentials are not valid, for example, incorrect principal 
> or password (or keytab)
> {code:title=400 Bad Request}
> {
>   "status" : 400,
>   "message" : "java.lang.IllegalArgumentException: Invalid KDC administrator 
> credentials"
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to