sec_rgy_attr_test_and_update(3sec)Updates specified attribute instances for a specified object only if a set of control attribute instances match the object's existing attribute instances Synopsis
#include <dce/sec_rgy_attr.h> Parameters Input
context
name_domain
sec_rgy_domain_person
sec_rgy_domain_group
sec_rgy_domain_org
name
num_to_test
test_attrs[ ]
num_to_write
update_attrs Output
failure_index
status
Description This update is an atomic operation: if any of the control attributes do not match existing attributes, none of the updates are performed, and if an update should be performed, but the write cannot occur for whatever reason to any member of the update_attrs[ ] array, all updates are aborted. The attribute causing the update to fail is identified in failure_index. If the failure cannot be attributed to a given attribute, failure_index contains 1. If an attribute instance already exists which is identical in both attr_id and attr_value to an attribute specified in in_attrs[], the existing attribute information is overwritten by the new information. For multivalued attributes, every instance with the same attr_id is overwritten with the supplied values. If an attribute instance does not exist, it is created. If you specify an attribute set for updating, the update applies to the set instance, the set itself, not the members of the set. To update a member of an attribute set, supply the UUID of the set member. If an input attribute is associated with an update attribute trigger server, the attribute trigger server is invoked (by the sec_attr_trig_update( ) function) and the in_attr[ ] array is supplied as input. The output attributes from the update attribute trigger server are stored in the registry database and returned in the out_attrs[ ] array. Note that the update attribute trigger server may modify the values before they are used to update the registry database. This is the only circumstance under which the values in the out_attrs[ ] array differ from the values in the in_attrs[ ] array.
Permissions Required Files
/usr/include/dce/sec_rgy_attr.idl Errors The following describes a partial list of errors that might be returned. Refer to the OSF DCE Problem Determination Guide for complete descriptions of all error messages. control attribute has changed unauthorized database read only server unavailable invalid/unsupported attribute type invalid encoding type value not unique trigger server unavailable site read only error_status_ok
Related Information
|