Dell DX6004S DX Object Storage Application Guide - Page 61
Updating the Domain Manager Realm
View all Dell DX6004S manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 61 highlights
curl --anyauth -u "fred.bell:fred" --location-trusted "http://172.16.0.35?domain=cluster.example.com" -D get-domain-realm2.log The domain realm displays: james.north:cluster.example.com:fef73c5a743a14bf0468a2a5c7177d22 sarah.jones:cluster.example.com:8ac9676459e241875098cd5e207c6a17 5. Use the following commands to update the realm for cluster.example.com, making sure to create at least one duplicate user entry, and to give the duplicate user a different password. htdigest -c cluster_example_com cluster.example.com earl.grey htdigest cluster_example_com cluster.example.com simba.lion htdigest cluster_example_com cluster.example.com james.north 6. Use the following command to APPEND the updated user list to the domain: curl -X APPEND --data-binary @cluster_example_com --anyauth u "fred.bell:fred" --location-trusted "http://172.16.0.35? domain=cluster.example.com" --post301 -D domain-realm2.log 7. GET the user list: curl --anyauth -u "fred.bell:fred" --location-trusted http://172.16.0.35?domain=cluster.example.com -D get-domain-realm2.log The user list displays: farah.baker:cluster.example.com:8fb85724eb0ecba5ab1ff41f0a527f3f james.north:cluster.example.com:fef73c5a743a14bf0468a2a5c7177d22 earl.grey:cluster.example.com:71c2e49822192d188143ee90e0a1350e simba.lion:cluster.example.com:c02fa7c3344d2c2edb3f1055b58e231e james.north:cluster.example.com:f1fddbfc268ee85cf13965272f711a81 Note Notice that James' hash is different because you changed his password. In the event of duplicates, DX Storage uses the last user name and password in the user list. 14.3.2. Updating the Domain Manager Realm The following examples show how to update the user list for your realm; that is, the realm for the domain's _administrators bucket. All examples show how to APPEND to the realm, which works whether the realm already exists or not. In the event you add the same user name to the realm more than once, DX Storage uses the last entry in the list. 1. Use the following command to create a domain manager realm: htdigest -c cluster_example_com_administrators cluster.example.com/ _administrators larry.green 2. HEAD the Castor-Authorization header for the _administrators bucket as follows: Copyright © 2010 Caringo, Inc. All rights reserved 56 Version 5.0 December 2010