From ac3b85319ce0eca0d9f62c03cb071c828e444b5b Mon Sep 17 00:00:00 2001 From: SirishaGuduru Date: Fri, 23 Dec 2016 15:03:50 +0530 Subject: [PATCH] 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 --- doc/radosgw/swift/auth.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.47.3