Dell DX6004S DX Object Storage Application Guide - Page 61

Updating the Domain Manager Realm

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

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81

Copyright © 2010 Caringo, Inc.
All rights reserved
56
Version 5.0
December 2010
curl --anyauth -u "fred.bell:fred" --location-trusted
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
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: