Ask Your Question

Create User using Api call in openstack

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

Lokesh gravatar image

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

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":"", "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


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 -0500 )edit
1 in this example

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

2 answers

Sort by ยป oldest newest most voted

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

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.
edit flag offensive delete link more

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

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


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

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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 108 times

Last updated: May 01 '14