PreviousNext

organization modify

Changes attributes and policies of organizations. The syntax is:

organization modify organization_name_list
{-add extended_rgy_attr_list | -remove extended_rgy_attr_list [-types |
-change extended_rgy_attr_list | attribute value}

Options

-attribute value
As an alternative to using options with an attribute list, you can change individual attribute options by prepending a hyphen (-) to any attributes listed in the Attributes topic of this reference page. You cannot use this option to specify ERAs; it is only for standard group attributes described in Attributes.

-add extended_rgy_attr_list
Allows you to modify attributes, including ERAs, by using an attribute list rather than individual attribute options. The format of an attribute list is as follows:

{{extended_rgy_attr_list value}{extended_rgy_attr_list value}}

-change extended_rgy_attr_list
Allows you to modify attributes, including ERAs, by using an attribute list rather than individual attribute options. See the -add option for the attribute list format.

-remove extended_rgy_attr_list
Allows you to modify attributes, including ERAs, by using an attribute list rather than individual attribute options such as -fullname, -acctlife, and so on. See the -add option for the attribute list format.

Without the -types option, -remove deletes individual attribute instances attached to the group. In this case, extended_rgy_attr_list is a list of attribute-value pairs. With the -types option, -remove deletes attributes types (and all instances of that type) attached to the group. In this case, extended_rgy_attr_list is a list of attribute types.

-types
Used with the -remove option to remove attribute types (and all instances of that type) attached to the group.

See the OSF DCE Administration Guide - Core Components for more information about ERAs.

Description
The organization modify operation changes attributes and policies of organizations. (To change registry-wide policies, use the registry command.)

The argument is a list of names of organizations to be operated on. All modifications are applied to all organizations named in the argument. Organizations are modified in the order they are listed and all modifications to an individual organization are atomic. Modifications to multiple organizations are not atomic. A failure for any one organization in a list causes an error to be generated and the rest of the operation to be aborted. Returns an empty string on success.

The -change option can be used to modify the value of any attribute except for orgid and uuid.

Privileges Required
You must have r (read) permission on the organization to be modified and f (full_name) permission to change the organization's fullname and/or m (mgmt_info) permission to change the organization's management information.

Examples

dcecp> organization modify temps -acctlife 180-00:00:00 \
>-pwdalpha yes -pwdlife 30-00:00:00 \
>-pwdexpdate 1995-12-31-23:59:59 -pwdspaces yes
dcecp>

dcecp> organization modify temps -add { test_era 101}
dcecp>

dcecp> organization show temps -all
{fullname ()}
{orgid 12}
{uuid 0000000c-03d50-21cf0-9802-08000985b5a6}
{test_era 101}
{acctlife +180-00:00:00.000I-----}
{pwdalpha yes}
{pwdexpdate 1995-12-31-23:59:50.000+00:00I-----}
{pwdlife +30-00:00:00.000I-----}
{pwdminlen 0}
{pwdspaces yes}
dcecp>