Tivoli::AccessManager::Admin::Domain
use Tivoli::AccessManager::Admin; my $pd = Tivoli::AccessManager::Admin->new( password => 'N3ew0nk' ); # Create a domain object my $dom = Tivoli::AccessManager::Admin::Domain->new( $pd, name => 'Test', admin => 'chimchim', description => 'test domain' ); # Create it in TAM my $resp = $dom->create(password => 'n33w0nk'); # Create another domain in a different way $resp = Tivoli::AccessManager::Admin::Domain->create( $pd, name => 'Test1', admin => 'chimchim', description => 'another test domain', password => 'n33w0nk'); my $dom1 = $resp->value; # Delete them both $resp = $dom->delete; # All the info stays in registry $resp = $dom1->delete( 1 ); # Kill everything # Recreate my example :) $resp = $dom->create(password => 'n33w0nk'); # Set the description $resp = $dom->description( 'Speed Racer' ); # Get a list of all the domains $resp = $dom->list; # Or $resp = Tivoli::AccessManager::Admin::Domain->list($pd); print "Domains:\n\t" . join("\n\t", @{$resp->value});
Allows for the creation, deletion and some manipulations of TAM domains.
Creates a blessed Tivoli::AccessManager::Admin::Domain object. You will need to destroy this object if you wish to change the context.
An initialized Tivoli::AccessManager::Admin::Context object. This is the only required parameter.
The name of the domain.
The domain administrator's ID.
A description of the domain.
A blessed Tivoli::AccessManager::Admin::Domain object.
Instantiates a Tivoli::AccessManager::Admin::Domain object and creates the domain in TAM if used as a class method.
The parameters are identical to those for "new". Unlike "new", they are all required.
The domain administrator's password. This too is required.
A blessed Tivoli::AccessManager::Admin::Domain object, buried in a Tivoli::AccessManager::Admin::Response object.
Generates a list of the names of all the security domains.
A fully initialized Tivoli::AccessManager::Admin::Context object.
The list of the security domains currently defined.
Yes, this can called as an instance method if you want. Notice the different signature -- the context object is no longer required.
See "new". Any parameter you did not provide to "new" must be provided to "create". They all must be defined to actually create the domain in TAM
The results if the create operation
Deletes the domain from TAM.
If provided, all of the domain's entries will be deleted from the registry.
The results of the delete call.
If the optional parameter is provided, the domain's description will be changed. Either way, the description for the domain is returned.
Causes the domain's description to be changed to STR
The domain's current description.
"list" can be called as an instance method as well. Note the diffference in the method's signature -- the Tivoli::AccessManager::Admin::Context object is no longer required.
None.
The names of all the currently defined TAM domains.
Returns the domain's name. This is a read-only method.
None
The domain's name. This is NOT buried in a Tivoli::AccessManager::Admin::Response object.
See Tivoli::AccessManager::Admin for the list. This was not possible without the help of a bunch of people smarter than me.
Mik Firestone <mikfire@gmail.com>
Copyright (c) 2004-2011 Mik Firestone. All rights reserved. This program is free software; you can redistibute it and/or modify it under the same terms as Perl itself.
All references to TAM, Tivoli Access Manager, etc are copyrighted, trademarked and otherwise patented by IBM.
To install Tivoli::AccessManager::Admin, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tivoli::AccessManager::Admin
CPAN shell
perl -MCPAN -e shell install Tivoli::AccessManager::Admin
For more information on module installation, please visit the detailed CPAN module installation guide.