<div dir="ltr">That 8080 is set in proxy conf<div><span style="font-family:arial,sans-serif;font-size:13px"> X-Auth-Token is generated by keystone(actually keystoneclient) and sent by swift. That't the token for admin:admin</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px">admin_token is set in keystone conf</span></div><div><font face="arial, sans-serif">"""</font></div><div><span style="font-family:arial,sans-serif;font-size:13px">service_port = 5000</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">service_host = 127.0.0.1</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">auth_port = 35357</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">auth_host = 127.0.0.1</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">auth_protocol = http</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">auth_uri = </span><a href="http://127.0.0.1:5000/" target="_blank" style="font-family:arial,sans-serif;font-size:13px">http://127.0.0.1:5000/</a><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">auth_token = 012345SECRET99TOKEN012345</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">admin_token = 012345SECRET99TOKEN012345</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">admin_tenant_name = service</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">admin_user = </span><span class="" style="font-family:arial,sans-serif;font-size:13px">swift</span><br style="font-family:arial,sans-serif;font-size:13px">
<span style="font-family:arial,sans-serif;font-size:13px">admin_password = </span><span class="" style="font-family:arial,sans-serif;font-size:13px">swift</span><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">""" <br>
</font><div class="gmail_extra">Such things depend on your env, which data you build in keystone. But some details need to check documents. (checking source codes is better<img src="cid:360@goomoji.gmail" style="margin: 0px 0.2ex; vertical-align: middle;" goomoji="360">)</div>
<div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 28, 2013 at 11:07 PM, Julian Learmonth <span dir="ltr"><<a href="mailto:julian.learmonth@mobius.co.uk" target="_blank">julian.learmonth@mobius.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br><br>I've built an OpenStack (Folsom) demo VM (Ubuntu 12.10) and manually installed Swift. I am trying to get Swift to use Keystone for authentication, but am having trouble finding what I need to do to the /etc/swift/swift-proxy.conf file. The instructions I have been following say I should "Configure the paste file for swift-proxy
            (`/etc/swift/swift-proxy.conf`)", but I don't know what needs to be done. The document I am following is here: <a href="http://docs.openstack.org/folsom/openstack-compute/admin/content/configuring-swift-to-use-keystone.html" target="_blank">http://docs.openstack.org/folsom/openstack-compute/admin/content/configuring-swift-to-use-keystone.html</a><br>




<br>I've only been using OpenStack for about a week, so my apologies if this is obvious, but I can't figure it out. I've tried googling the config file, but I just get the document I am using (or the previous Wessex version) and there's no sample file in the Swift distribution.<br>



<br>The second config file I need to edit is the /etc/swift/proxy-swift.conf file. I have a couple of questions about this too. There's a section I need to paste into it as follows:<br><br>===<br>[filter:authtoken]<br>



paste.filter_factory = keystone.middleware.auth_token:filter_factory<br># Delaying the auth decision is required to support token-less<br># usage for anonymous referrers ('.r:*').<br>delay_auth_decision = 10<br>service_port = 5000<br>



service_host = 127.0.0.1<br>auth_port = 35357<br>auth_host = 127.0.0.1<br>auth_protocol = http<br>auth_uri = <a href="http://127.0.0.1:5000/" target="_blank">http://127.0.0.1:5000/</a><br>auth_token = 012345SECRET99TOKEN012345<br>


admin_token = 012345SECRET99TOKEN012345<br>
admin_tenant_name = service<br>admin_user = swift<br>admin_password = swift<br>===<br><br>Do I need to change the auth port? I can run the following command successfully:<br><br>===<br>root@openstack02:/home/stack/bin# curl -v -H 'X-Storage-User: 
admin:admin' -H 'X-Storage-Pass: admin' <a href="http://127.0.0.1:8080/auth/v1.0" target="_blank">http://127.0.0.1:8080/auth/v1.0</a><br>* About to connect() to 127.0.0.1 port 8080 (#0)<br>*   Trying 127.0.0.1...<br>


* connected<br>
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)<br>> GET /auth/v1.0 HTTP/1.1<br>> User-Agent: curl/7.27.0<br>> Host: <a href="http://127.0.0.1:8080" target="_blank">127.0.0.1:8080</a><br>> Accept: */*<br>


> X-Storage-User: admin:admin<br>
> X-Storage-Pass: admin<br>><br>* additional stuff not fine transfer.c:1037: 0 0<br>* HTTP 1.1 or later with persistent connection, pipelining supported<br>< HTTP/1.1 200 OK<br>< X-Storage-Url: <a href="http://127.0.0.1:8080/v1/AUTH_admin" target="_blank">http://127.0.0.1:8080/v1/AUTH_admin</a><br>



< X-Auth-Token: AUTH_tk0022e539fae64647883b9fa529311982<br>< Content-Type: text/html; charset=UTF-8<br>< X-Storage-Token: AUTH_tk0022e539fae64647883b9fa529311982<br>< Content-Length: 0<br>< Date: Wed, 28 Feb 2013 15:00:02 GMT<br>



<<br>* Connection #0 to host 127.0.0.1 left intact<br>* Closing connection #0<br>root@openstack02:/home/stack/bin#<br>===<br><br>So does that mean by auth_port is 8080? I assume that the X-Auth-Token is both the admin_token and auth_token? Is the admin_user (given the example above) going to be "admin:admin"?<br>


<br>Any assistance would very much be appreciated!<br><br>Regards,<br>Julian.<br>
<br>
<br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font color="#444444">Gareth</font><div><i><font color="#444444">Cloud Computing, Openstack, Fitness, Basketball<br></font></i></div><div><i><font color="#666666">Novice Openstack contributer</font></i></div>
<div><i><font color="#999999">My promise: if you find any spelling or grammar mistake in my email from Mar 1 2013, notice me </font></i></div><div><i><font color="#999999">and I'll donate 1$ or 1¥ to the organization specified by you.</font></i></div>
</div>
</div></div></div>