DynamicAccountsClient.java in the client directory demonstrates how to call the various operations to make use of the whole package.
-
Deploy the client (it is deployed by default when running ant deploy from the top directory).
-
Source the jars in $GLOBUS_LOCATION/lib (one of which is the client stubs).
$ source $GLOBUS_LOCATION/etc/globus-devel-env.sh
-
Create a pool account with default ttl (default host is localhost:8443)
$ java org.globus.dynamicAccounts.client.DynamicAccountsClient
Output:
EPR Address: https://127.0.0.1:8443/wsrf/services/DynamicAccountsService
Reference property[0]:
<ns1:AccountKey xmlns:ns1="http://www.globus.org/08/2004/dynamicAccounts">gpool010</ns1:AccountKey>
localName gpool010
owner DN /DC=org/DC=doegrids/OU=People/CN=Timothy Freeman 964650
-
Given you know the key, delete a resource (which in turn removes the pool mapping):
$ java org.globus.dynamicAccounts.client.DynamicAccountsClient -d gpool010
(the key is used here to construct an EPR, normally you would have EPR in memory)
Output:
local account name gpool010
Owner DN /DC=org/DC=doegrids/OU=People/CN=Timothy Freeman 964650
Deleting account ... success