From: SirishaGuduru Date: Fri, 23 Dec 2016 09:33:50 +0000 (+0530) Subject: doc: Fixes radosgw-admin ex: in swift auth section X-Git-Tag: v12.0.0~61^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12646%2Fhead;p=ceph.git doc: Fixes radosgw-admin ex: in swift auth section 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 --- diff --git a/doc/radosgw/swift/auth.rst b/doc/radosgw/swift/auth.rst index bfc97733cec..26290505c13 100644 --- a/doc/radosgw/swift/auth.rst +++ b/doc/radosgw/swift/auth.rst @@ -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