As normal user, execute the following command
curl -v -H 'X-Storage-User: admin:admin' -H 'X-Storage-Pass: admin' http://127.0.0.1:8080/auth/v1.0
The output should look like:
* About to connect() to 127.0.0.1 port 8080 (#0) * Trying 127.0.0.1... connected * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > GET /auth/v1.0 HTTP/1.1 > User-Agent: curl/7.21.6 (i686-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3 > Host: 127.0.0.1:8080 > Accept: */* > X-Storage-User: admin:admin > X-Storage-Pass: admin > < HTTP/1.1 200 OK < X-Storage-Url: http://127.0.0.1:8080/v1/AUTH_admin < X-Storage-Token: AUTH_tk441617bc550f4bb7bf51b4dc16800900 < X-Auth-Token: AUTH_tk441617bc550f4bb7bf51b4dc16800900 < Content-Length: 0 < Date: Fri, 14 Oct 2011 15:25:15 GMT < * Connection #0 to host 127.0.0.1 left intact * Closing connection #0
If the above command did not throw any error and gave you an output similar to the one above, then the user accounts are being authenticated fine. Make note of the X-Auth-Token and the X-Storage-Url. Then give the following command to check if you can perform a GET operation successfully:
curl -v -H 'X-Auth-Token: AUTH_tk441617bc550f4bb7bf51b4dc16800900' http://127.0.0.1:8080/v1/AUTH_admin
The output should be similar as follows:
* About to connect() to 127.0.0.1 port 8080 (#0) * Trying 127.0.0.1... connected * Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0) > GET /v1/AUTH_admin HTTP/1.1 > User-Agent: curl/7.21.6 (i686-pc-linux-gnu) libcurl/7.21.6 OpenSSL/1.0.0e zlib/1.2.3.4 libidn/1.22 librtmp/2.3 > Host: 127.0.0.1:8080 > Accept: */* > X-Auth-Token: AUTH_tk441617bc550f4bb7bf51b4dc16800900 > < HTTP/1.1 204 No Content < X-Account-Object-Count: 0 < X-Account-Bytes-Used: 0 < X-Account-Container-Count: 0 < Accept-Ranges: bytes < Content-Length: 0 < Date: Fri, 14 Oct 2011 15:28:15 GMT < * Connection #0 to host 127.0.0.1 left intact * Closing connection #0
