]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Fixes radosgw-admin ex: in swift auth section 12646/head
authorSirishaGuduru <SGuduru@walmartlabs.com>
Fri, 23 Dec 2016 09:33:50 +0000 (15:03 +0530)
committerSirishaGuduru <SGuduru@walmartlabs.com>
Fri, 23 Dec 2016 09:33:50 +0000 (15:03 +0530)
In the swift authentication page, an example is
provided for creating a new user with radosgw-admin.
This example creates a user, but afaict, doesn't
create a user which can access swift (at any rate,
with out further actions).

Fixes: #16687
Signed-off-by: SirishaGuduru <SGuduru@walmartlabs.com>
doc/radosgw/swift/auth.rst

index bfc97733cec17d3d299aa847257a89d05a15de86..26290505c13d33764843e556f6b8f5732500e6f9 100644 (file)
@@ -7,7 +7,8 @@ Swift API requests that require authentication must contain an
 The token may be retrieved from RADOS Gateway, or from another authenticator.
 To obtain a token from RADOS Gateway, you must create a user. For example:: 
 
-       sudo radosgw-admin user create --uid="{username}" --display-name="{Display Name}"
+    sudo radosgw-admin user create --subuser="{username}:{subusername}" --uid="{username}" 
+    --display-name="{Display Name}" --key-type=swift --secret="{password}" --access=full
 
 For details on RADOS Gateway administration, see `radosgw-admin`_. 
 
@@ -73,4 +74,4 @@ A typical response looks like this::
        X-Storage-Url: https://swift.radosgwhost.com/v1/ACCT-12345
        X-Auth-Token: UOlCCC8TahFKlWuv9DB09TWHF0nDjpPElha0kAa
        Content-Length: 0
-       Content-Type: text/plain; charset=UTF-8
\ No newline at end of file
+    Content-Type: text/plain; charset=UTF-8