Dell DX6004S DX Object Storage Application Guide - Page 60

Updating the Domain Realm

Page 60 highlights

• You send your commands to a node whose IP address is 172.16.0.35. Note The examples show how to update user lists using APPEND, which is recommended because APPEND does not change the Castor-Authorization header for the object. If you use PUT instead of APPEND, make sure you first HEAD the domain object to get the Castor-Administrator header and pass the same header in with the PUT command. Otherwise, attempts to authenticate might fail because of a missing or invalid header. An example is shown Section 14.3, "Examples of Updating Domain and Administrator User Lists". 14.3.1. Updating the Domain Realm The following examples show how to update the cluster.example.com user list for cluster.example.com. 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. To update the domain realm: 1. Use the following commands to create the initial domain realm: htdigest -c cluster_example_com cluster.example.com farah.baker htdigest cluster_example_com cluster.example.com james.north 2. HEAD the Castor-Authorization header for the domain as follows: curl -I --anyauth -u "jeannie.clark:jeannie" --location-trusted "http://172.16.0.35?domain=cluster.example.com" -D get-domain-realm.log The Castor-Authorization header in this example is: Castor-Authorization: cluster.example.com/_administrators, POST=cluster.example.com The Castor-Authorization header indicates your cluster manager chose to enable anyone in the domain manager realm to manage the domain user list, and to enable anyone in the cluster.example.com domain to POST to (that is, create buckets in) the domain. Note The domain= query argument is required in this case because you are performing an SCSP operation on the domain. 3. APPEND the user list to the realm using the following command: 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-realm.log 4. GET the updated user list. Copyright © 2010 Caringo, Inc. All rights reserved 55 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
55
Version 5.0
December 2010
You send your commands to a node whose IP address is 172.16.0.35.
Note
The examples show how to update user lists using APPEND, which is recommended
because APPEND does not change the
Castor-Authorization
header for the object.
If you use PUT instead of APPEND, make sure you first HEAD the domain object
to get the
Castor-Administrator
header and pass the same header in with the
PUT command. Otherwise, attempts to authenticate might fail because of a missing or
invalid header. An example is shown
Section 14.3, “Examples of Updating Domain and
Administrator User Lists”
.
14.3.1. Updating the Domain Realm
The following examples show how to update the
cluster.example.com
user list for
cluster.example.com
. 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.
To update the domain realm:
1. Use the following commands to create the initial domain realm:
htdigest -c cluster_example_com cluster.example.com farah.baker
htdigest cluster_example_com cluster.example.com james.north
2. HEAD the
Castor-Authorization
header for the domain as follows:
curl -I --anyauth -u "jeannie.clark:jeannie" --location-trusted
The
Castor-Authorization
header in this example is:
Castor-Authorization: cluster.example.com/_administrators,
POST=cluster.example.com
The
Castor-Authorization
header indicates your cluster manager chose to enable anyone
in the domain manager realm to manage the domain user list, and to enable anyone in the
cluster.example.com
domain to POST to (that is, create buckets in) the domain.
Note
The
domain=
query argument is required in this case because you are performing an
SCSP operation on the domain.
3. APPEND the user list to the realm using the following command:
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-realm.log
4. GET the updated user list.