<div dir="ltr">There is no tenant specified by the curl command; try:<div><br></div><div> <span style="font-size:13px;font-family:arial,sans-serif">curl -d '{"auth":{"</span><span style="font-size:13px;font-family:arial,sans-serif">passwordCredentials":{"</span><span style="font-size:13px;font-family:arial,sans-serif">username": "barbican", "password": "secret"}, "tenantName": "service"}}' -H "Content-type: application/json" </span><a href="http://localhost:35357/v2.0/tokens" target="_blank" style="font-size:13px;font-family:arial,sans-serif">http://localhost:35357/v2.0/tokens</a></div>
</div><div class="gmail_extra"><br clear="all"><div><div><br></div>-Dolph</div>
<br><br><div class="gmail_quote">On Fri, May 10, 2013 at 12:25 PM, Bhandaru, Malini K <span dir="ltr"><<a href="mailto:malini.k.bhandaru@intel.com" target="_blank">malini.k.bhandaru@intel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hello Keystone folks!<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have a user in the system, <u></u><u></u></p>
<p class="MsoNormal"> name=barbican <u></u><u></u></p>
<p class="MsoNormal"> tenant=service.<u></u><u></u></p>
<p class="MsoNormal"> v2<u></u><u></u></p>
<p class="MsoNormal">Been creating tokens via curl for v2 for said user, and via the barbican. Then tokens in the database are different, some do not have tenant and meta-data information populated and thus behave differently for authentication purposes.<u></u><u></u></p>
<p class="MsoNormal">Why?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks<u></u><u></u></p>
<p class="MsoNormal">Malini<u></u><u></u></p>
<p class="MsoNormal">=======================<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The tokens created using the curl call <a href="http://docs.openstack.org/developer/keystone/api_curl_examples.html" target="_blank">
http://docs.openstack.org/developer/keystone/api_curl_examples.html</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">curl -d '{"auth":{"passwordCredentials":{"username": "barbican", "password": "secret"}}}' -H "Content-type: application/json"
<a href="http://localhost:35357/v2.0/tokens" target="_blank">http://localhost:35357/v2.0/tokens</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Example:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">| ec6ef5271a8f4045ba869e6b89744a21 | 2013-05-11 17:22:03 | {"key": "ec6ef5271a8f4045ba869e6b89744a21", "user": {"email": "<a href="mailto:barbican@rackspace.com" target="_blank">barbican@rackspace.com</a>", "tenantId": "7ddd3dee8a6a44e5a2b6569d03fb0d35", "enabled": true, "name": "barbican", "id":
"326e5e2c3b4d4fcd83690c1279bbba19"}, <span style="background:yellow">
"tenant": null</span>, "metadata": {"roles": []}} | 1 | NULL | 326e5e2c3b4d4fcd83690c1279bbba19
|<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">| f84e1ff682944b1bb8b6813d39e4bef3 | 2013-05-11 09:10:04 | {"key": "f84e1ff682944b1bb8b6813d39e4bef3", "user": {"email": "<a href="mailto:barbican@rackspace.com" target="_blank">barbican@rackspace.com</a>", "tenantId": "7ddd3dee8a6a44e5a2b6569d03fb0d35", "enabled": true, "name": "barbican", "id":
"326e5e2c3b4d4fcd83690c1279bbba19"}, <span style="background:yellow">
"tenant": {"enabled": true, "description": null, "name": "service", "id": "7ddd3dee8a6a44e5a2b6569d03fb0d35"},</span> "metadata": {"roles": ["9fe2ff9ee4384b1894a90878d3e92bab", "3af169881abe4d1187a4a5d03a14fcce"]}} | 1 | NULL | 326e5e2c3b4d4fcd83690c1279bbba19
| <u></u><u></u></p>
</div>
</div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>