ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrii Babiichuk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-13853) UI should not use ldap_user field after introducing user_type one.
Date Thu, 12 Nov 2015 13:25:10 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-13853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15002052#comment-15002052
] 

Andrii Babiichuk commented on AMBARI-13853:
-------------------------------------------

+1 for the patch

> UI should not use ldap_user field after introducing user_type one.
> ------------------------------------------------------------------
>
>                 Key: AMBARI-13853
>                 URL: https://issues.apache.org/jira/browse/AMBARI-13853
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-web
>    Affects Versions: 2.2.0
>            Reporter: Antonenko Alexander
>            Assignee: Antonenko Alexander
>            Priority: Critical
>             Fix For: 2.2.0
>
>         Attachments: AMBARI-13853.patch
>
>
> {noformat}
> {
>   "href" : "http://104.196.94.167:8080/api/v1/users/?Users/user_name.matches(.*.*)&fields=*&from=0&page_size=10&_=1443104119309",
>   "itemTotal" : "2",
>   "items" : [
>     {
>       "href" : "http://104.196.94.167:8080/api/v1/users/admin",
>       "Users" : {
>         "active" : true,
>         "admin" : true,
>         "groups" : [ ],
>         "ldap_user" : false,
>         "user_name" : "admin",
>         "user_type" : "LOCAL"
>       },
>       "widget_layouts" : [ ],
>       "privileges" : [
>         {
>           "href" : "http://104.196.94.167:8080/api/v1/users/admin/privileges/1",
>           "PrivilegeInfo" : {
>             "privilege_id" : 1,
>             "user_name" : "admin"
>           }
>         }
>       ]
>     },
>     {
>       "href" : "http://104.196.94.167:8080/api/v1/users/jwt-user1",
>       "Users" : {
>         "active" : true,
>         "admin" : false,
>         "groups" : [ ],
>         "ldap_user" : false,
>         "user_name" : "jwt-user1",
>         "user_type" : "JWT"
>       },
>       "widget_layouts" : [ ],
>       "privileges" : [ ]
>     }
>   ]
> }
> {noformat}
> We introduce new field "user_type" instead of "ldap_user" flag as we have more than two
user types now. I guess "ldap_user" field will remain on its place at lest for some time to
provide backward compatibility.



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

Mime
View raw message