Discussion: Creating our warrants
The session above shows:
- As a hosting administrator we connect to the hosting service (the
application called Hospitality). Then we create a new contract for
a customer and create a hosting control warrant for them in variable
$hw. This warrant is a consumer-level warrant and gives the
holder the rights to run an application on the hosting service.
- We we write the warrant to a file hosting-warrant.xml and disconnect
from the hosting admin service.
- We do the same thing for SAS: connect with our admin-level warrant,
create a new customer contract, and put their consumer-level warrant
into variable $sw.
- We dump the warrant to sas-warrant.xml and disconnect from
the SAS admin service. Finally we quit the launcher.
Notice that although both the hosting service and SAS have the idea
of contracts, the conepts are different and hence hence so are the
command line interfaces. For the hosting service a new contract is
an integer (which we can see when we issue the command echo
$contract), and from this we can get a consumer warrant. But for
the SAS a contract is identified by an X.500 DN, and creating a new
contract does itself create a new warrant.
If we were to now telnet into our hosting service and use its list
command we would see the new hosting contract.
Nik Silver
2002-03-09