AFS-Command
view release on metacpan or search on metacpan
lib/AFS/Command/PTS.pod view on Meta::CPAN
------- -------
getGroupNames() list of group names
getGroupIds() list of group ids
getGroups() list of AFS::Object::Group objects
getGroupByName($name) the AFS::Object::Group object for group $name
getGroupById($id) the AFS::Object::Group object for id $id
getGroup( name => $name ) the AFS::Object::Group object for group $name
getGroup( id => $id ) the AFS::Object::Group object for id $id
getUserNames() list of user names
getUserIds() list of user ids
getUsers() list of AFS::Object::User objects
getUserByName($name) the AFS::Object::User object for user $name
getUserById($id) the AFS::Object::User object for id $id
getUser( name => $name ) the AFS::Object::User object for user $name
getUser( id => $id ) the AFS::Object::User object for id $id
B<AFS::Object::User>, B<AFS::Object::Group>
Attributes Values
---------- ------
name User or group name
id User or group id
Methods Returns
------- -------
getMembership() For a user, the list of group to which the user belongs,
for a group, the members of the group
=back
=head1 METHODS (with simple return values)
All of the following commands return a simple Boolean (true/false)
value, if they succeed or fail.
=head2 adduser
The pts help string is:
pts adduser: add a user to a group
Usage: pts adduser -user <user name>+ -group <group name>+
[-cell <cell name>] [-noauth] [-force]
The corresponding method invocation looks like:
my $result = $pts->adduser
(
# Required arguments
user => $user, # OR [ $user1, $user2, ... ]
group => $group, # OR [ $group1, $group2, ... ]
# Optional arguments
cell => $cell,
noauth => 1,
force => 1,
);
=head2 chown
The pts help string is:
pts chown: change ownership of a group
Usage: pts chown -name <group name> -owner <new owner>
[-cell <cell name>] [-noauth] [-force]
The corresponding method invocation looks like:
my $result = $pts->chown
(
# Required arguments
name => $name,
owner => $owner,
# Optional arguments
cell => $cell,
noauth => 1,
force => 1,
);
=head2 delete
The pts help string is:
pts delete: delete a user or group from database
Usage: pts delete -nameorid <user or group name or id>+
[-cell <cell name>] [-noauth] [-force]
The corresponding method invocation looks like:
my $result = $pts->delete
(
# Required arguments
nameorid => $nameorid, # OR [ $nameorid1, $nameorid2, ... ]
# Optional arguments
cell => $cell,
noauth => 1,
force => 1,
);
=head2 removeuser
The pts help string is:
pts removeuser: remove a user from a group
Usage: pts removeuser -user <user name>+ -group <group name>+
[-cell <cell name>] [-noauth] [-force]
The corresponding method invocation looks like:
my $result = $pts->removeuser
(
# Required arguments
user => $user, # OR [ $user1, $user2, ... ]
group => $group, # OR [ $group1, $group2, ... ]
# Optional arguments
cell => $cell,
noauth => 1,
force => 1,
);
=head2 rename
The pts help string is:
( run in 1.273 second using v1.01-cache-2.11-cpan-39bf76dae61 )