Dell DX6004S DX Object Storage Application Guide - Page 53

Creating Realms

Page 53 highlights

5. If the search returns no realms,DX Storage continues to execute the method without further authentication or authorization. If the search finds a security realm: 1. DX Storage examines the request headers (not the object metadata) to determine if the request headers include an HTTP Authorization header. 2. If the same privilege is granted to two realms, the first realm specified is granted the privilege. 3. If the search finds a realm against which to authorize, DX Storage immediately attempts to validate the credentials found in the Castor-Authorization header against one of the users and credentials found in that realm. If no user credentials are included in the client request, DX Storage challenges the client with a WWW-Authenticate header as discussed in RFC 2617. Any other issues with authorization must be resolved by your cluster administrator. 12.6. Creating Realms This section discusses how to create a realm and associate it with a bucket in the cluster. Before continuing, make sure you review the information discussed in Section 12.2, "Security Realm Overview". A realm is a collection of user credentials, each of which includes an MD5 hash. It is computed from the string username:realm:password. You can compute the realm using a programming language, or a utility like Apache htdigest or md5sum. htdigest is provided as part of the Apache distribution. Note User names cannot contain a colon character (:). Realm names cannot contain a colon character (:) or a comma character (,). An example of creating a bucket realm follows: htdigest -c cluster_example_com_bucket cluster.example.com/bucket fred.jones New password: Re-type new password: htdigest cluster_example_com_bucket cluster.example.com/bucket sarah.smith New password: Re-type new password: The preceding command creates a password file named cluster_example_com_mybucket with the following contents: fred.jones:cluster.example.com/mybucket:2424db9aa9a308b53f914176d9d14676 sarah.smith:cluster.example.com/mybucket:edaf3c313de4af2877bf08546856242b Copyright © 2010 Caringo, Inc. All rights reserved 48 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
48
Version 5.0
December 2010
5. If the search returns no realms,DX Storage continues to execute the method without further
authentication or authorization.
If the search finds a security realm:
1. DX Storage examines the request headers (not the object metadata) to determine if the request
headers include an HTTP Authorization header.
2. If the same privilege is granted to two realms, the first realm specified is granted the privilege.
3. If the search finds a realm against which to authorize, DX Storage immediately attempts to
validate the credentials found in the
Castor-Authorization
header against one of the users
and credentials found in that realm.
If no user credentials are included in the client request, DX Storage challenges the client with a
WWW-Authenticate
header as discussed in
RFC 2617
. Any other issues with authorization must
be resolved by your cluster administrator.
12.6. Creating Realms
This section discusses how to create a realm and associate it with a bucket in the cluster. Before
continuing, make sure you review the information discussed in
Section 12.2, “Security Realm
Overview”
.
A realm is a collection of user credentials, each of which includes an MD5 hash. It is computed
from the string
username
:
realm
:
password
. You can compute the realm using a programming
language, or a utility like Apache
htdigest
or
md5sum
.
htdigest
is provided as part of the
Apache
distribution.
Note
User names cannot contain a colon character (
:
). Realm names cannot contain a colon
character (
:
) or a comma character (
,
).
An example of creating a bucket realm follows:
htdigest -c cluster_example_com_bucket cluster.example.com/bucket
fred.jones
New password:
Re-type new password:
htdigest cluster_example_com_bucket cluster.example.com/bucket sarah.smith
New password:
Re-type new password:
The preceding command creates a password file named
cluster_example_com_mybucket
with
the following contents:
fred.jones:cluster.example.com/mybucket:2424db9aa9a308b53f914176d9d14676
sarah.smith:cluster.example.com/mybucket:edaf3c313de4af2877bf08546856242b