openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #22886
Re: problem in authenticating...
Kamaill,
I think that is caused because of the wrong HTTP header in the second curl
command. It should be 'X-Auth-Token' instead of 'XX-Auth-Token'.
Give it a try and get back if you have any issue.
-Unmesh.
On Tue, Apr 23, 2013 at 1:17 PM, Study Kamaill <study.info@xxxxxxxxx> wrote:
> THis is the output :: -----------
>
> root@swift-workshop:~# curl -v -H 'X-Auth-User: admin:admin' -H
> 'X-Auth-Key: admin' http://127.0.0.1/auth/v1.0/
> * About to connect() to 127.0.0.1 port 80 (#0)
> * Trying 127.0.0.1... connected
> > GET /auth/v1.0/ HTTP/1.1
> > User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1
> zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> > Host: 127.0.0.1
> > Accept: */*
> > X-Auth-User: admin:admin
> > X-Auth-Key: admin
> >
> < HTTP/1.1 200 OK
> < X-Storage-Url: http://127.0.0.1:80/v1/AUTH_admin
> < X-Auth-Token: AUTH_tk2ef67e3e0bce4dfb8191044cfc2101d8
> < X-Storage-Token: AUTH_tk2ef67e3e0bce4dfb8191044cfc2101d8
> < X-Trans-Id: tx44471930f35c4cf68c960e0850adace3
> < Content-Length: 0
> < Date: Tue, 23 Apr 2013 07:05:01 GMT
> <
> * Connection #0 to host 127.0.0.1 left intact
> * Closing connection #0
> root@swift-workshop:~# curl -v -H 'XX-Auth-Token:
> AUTH_tk2ef67e3e0bce4dfb8191044cfc2101d8' http://127.0.0.1:80/v1/AUTH_admin
> * About to connect() to 127.0.0.1 port 80 (#0)
> * Trying 127.0.0.1... connected
> > GET /v1/AUTH_admin HTTP/1.1
> > User-Agent: curl/7.22.0 (i686-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1
> zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> > Host: 127.0.0.1
> > Accept: */*
> > XX-Auth-Token: AUTH_tk2ef67e3e0bce4dfb8191044cfc2101d8
> >
> < HTTP/1.1 401 Unauthorized
> < Content-Length: 131
> < Content-Type: text/html
> < X-Trans-Id: txc073152b8f78467e93a64677d437ef1b
> < Date: Tue, 23 Apr 2013 07:05:54 GMT
> <
> * Connection #0 to host 127.0.0.1 left intact
> * Closing connection #0
> <html><h1>Unauthorized</h1><p>This server could not verify that you are
> authorized to access the document you
> requested.</p></html>root@swift-workshop:~#
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to : openstack@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openstack
> More help : https://help.launchpad.net/ListHelp
>
>
References