Copyright © 2010 Caringo, Inc.All rights reserved 58Version 5.0December 2010Protection setting Castor-Authorization headerAll Users. No authenticationrequiredCastor-Authorization: domain-name/_administrators, POST=Only users in this domain Castor-Authorization: domain-name/_administrators, POST=domain-nameOnly users in domain Castor-Authorization: domain-name/_administrators, POST=domain-nameThe difference between this protection setting and thepreceding is that in this case, domain-name is the name of adifferent domain in the cluster.To recover the domain:1. Add a DX Content Router filter rule to search for streams where the value of the Castor-System-Name header is a bucket in the domain.2. Using the SDK, instantiate a metadata enumerator subscribed to the rule channel you created inthe preceding step to obtain the bucket's metadata.3. In the metadata returned for the object, look for the value of the Castor-System-CID header.The Castor-System-CID header is the UUID of the domain in which the bucket was contained.4. POST the previous domain's UUID using the recreatecid query argument to create the newdomain, passing in the Cache-Control, Castor-Authorization, Castor-Stream-Type,and lifepoint headers exactly as shown. You can change the Castor-Authorizationheader and upload a user list later.curl -i -X POST -H "Cache-Control: no-cache-context" -H "Castor-Authorization: protection-setting" -H "Castor-Stream-Type: admin" -H"lifepoint: [] reps=16" --data-binary '' --post301 --location-trusted"http://node-ip?domain=domain-name&admin&recreatecid=previous-domain-UUID" --digest -u "your-username:your-password" [-D log-file-name]NoteThe Cache-Control, lifepoint, and Castor-Stream-Type headers must beentered exactly as shown to match the headers used when domains are createdby the Admin Console. Cache-Control: no-cache-context does not preventthe domain from being cached. lifepoint: [] reps=16 enables the domainto be replicated as many times as possible. Castor-Stream-Type: admin isrecommended for all objects that use a Castor-Authorization header.For example, if the domain name is cluster.example.com with the protection setting Onlyusers in this domain, and the old domain alias was c0d0fa42bccac73cd3f2324bb53e40a5,enter the following command:curl -i -X POST -H "Cache-Control: no-cache-context" -H"Castor-Authorization: cluster.example.com/_administrators,POST=cluster.example.com" -H "Castor-Stream-Type:admin" -H "lifepoint: [] reps=16" --data-binary ''--post301 --location-trusted "http://172.16.0.35?