Ask Your Question
0

Create User using Api call in openstack

asked 2014-04-14 09:02:25 -0600

Lokesh gravatar image

updated 2014-04-14 12:29:54 -0600

larsks gravatar image

Hello ,

I have used the code as shown below , here is the post data that i have sent along with the curl

$post='{"user":{"name":"guru", "email":"guru@guru.com", "enabled":true, "OS-KSADM:password":"password123"}}';

Here i am able to create the user and i can map the user to a specific role and to a particular project also .

I am facing using while login into the dashboard using the user that i have created . Here while creating the user i am passing the raw password . Should i convert into some format before passing ( i.e md5 or any other format).Please help me out int his issue . Or am i doing anything wrong ?????

edit retag flag offensive close merge delete

Comments

Your question is a little unclear. Are you saying that you are unable to log in to the dashboard after creating this user? What if you include a tenantId value when submitting the create request?

larsks gravatar imagelarsks ( 2014-04-14 12:32:07 -0600 )edit
1

...as in this example

larsks gravatar imagelarsks ( 2014-04-14 12:32:19 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2014-05-01 02:19:29 -0600

Lokesh gravatar image

Hello ,

          Anyone please help me out with the above issue . User is creating with the mentioned username and password .But the problem is i am not able to login with the credentials which i have passed while creating the user . But it works if i update the password from the admin Dashboard .

Regards , Lokesh.S

edit flag offensive delete link more

Comments

Please update your question rather than adding "answers" that are actually just additional questions. Thanks!

larsks gravatar imagelarsks ( 2014-05-01 13:28:12 -0600 )edit
0

answered 2014-05-01 10:56:26 -0600

Just use password instead of OS-KSADM:password in your request.  There was a spec mismatch and they added a support for OS-KSADM:password about six months ago.  (i.e) If you are using icehouse code then OS-KSADM:password will work. Otherwise just use "password" which will work in all the versions.

https://github.com/openstack/keystone/commit/b18390dbb5d9d2c23e0d6cf18643e255825abd09
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-04-14 09:02:25 -0600

Seen: 74 times

Last updated: May 01 '14