FAQ
Hi

I tried API v6 /users/{userName} with view=export.
I couldn't get apiUser pwHas, pwSalt and pwLogin too.



% curl -u admin:admin
"http://192.168.1.100:7180/api/v6/users/admin?view=export"

{
   "name" : "admin",
   "roles" : [ "ROLE_ADMIN" ]
}



2014年2月21日金曜日 10時44分44秒 UTC+9 shin kusanagi:
Appreciate for your response!

I tried export view.
curl -u admin:XXXX 'http://10.211.55.100:7180/api/v5/users?view=export'
{
"items" : [ {
"name" : "admin",
"roles" : [ "ROLE_ADMIN" ],
"pwHash" : "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"pwSalt" : 99999999999999999999,
"pwLogin" : true
}, {
"name" : "user1",
"pwHash" : "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"pwSalt" : 99999999999999999999,
"pwLogin" : true
} ]

great!
but, I can get only username on /users/{username}?view=export

$ curl -u admin:XXXX '
http://10.211.55.100:7180/api/v5/users/user1?view=export'
{
"name" : "user1"
}

Can I have to /users/{username}?view=export ?


thx.


Try retrieving the user information in export view:

/users?view=export

On Thu, Feb 20, 2014 at 12:41 AM, shin kusanagi wrote:

Hi, all.

I want to have to user password hash and salt information.

I already created "user1" on Craudea Manager.
to try /users/{username} API. (
http://cloudera.github.io/cm_api/apidocs/v5/path__users_-userName-.html)
and catched "HTTP 200OK"

but, HTTPRequest body was "{\n \"name\" : \"user1\"\n}" only.

How to get to it?

----------
THX.
Shin Kusanagi

To unsubscribe from this group and stop receiving emails from it, send
an email to scm-users+...@cloudera.org.
To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
groupscm-users @
categorieshadoop
postedFeb 20, '14 at 8:41a
activeApr 17, '14 at 2:31p
posts5
users4
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase