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 <SGuduru@walmartlabs.com>
This commit is contained in:
SirishaGuduru 2016-12-23 15:03:50 +05:30
parent 69d57b77bd
commit ac3b85319c

View 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
Content-Type: text/plain; charset=UTF-8