Dell DX6000 Application Manual
Download Application manual of Dell DX6000 Desktop, Server for Free or View it Online on All-Guides.com.
Brand: Dell
Category: Desktop , Server , Software , Storage
Type: Application manual
Model: Dell DX6000 , Dell DX6004S , Dell DX6012S
Pages: 81 (0.65 Mb)
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
"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.