sec_rgy_attr_lookup_by_id(3sec)Reads a specified object's attribute(s), expanding attribute sets into individual member attributes 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_attr_keys
space_avail
attr_keys[ ] The size of the attr_keys[ ] array is determined by the num_attr_keys parameter. Input/Output
cursor Output
num_returned
attrs
num_left
status
Description If the num_attr_keys parameter is set to 0, all of the object's attributes that the caller is authorized to see are returned. This routine is useful for programmatic access. After a successful call, free the resources allocated by this routine for each attribute returned in the attrs[ ] parameter with the sec_attr_util_inst_free_ptrs( ) routine. For multivalued attributes, the call returns a sec_attr_t for each value as an individual attribute instance. For attribute sets, the call returns a sec_attr_t for each member of the set; it does not return the set instance. The attr_keys[ ] array, which specifies the attributes to be returned, contains values of type sec_attr_t. These values consist of: · attr_id, a UUID that identifies the attribute type · attr_value, values of sec_attr_value_t that specify the attribute's encoding type and values. Use the attr_id field of each attr_keys array element, to specify the UUID that identifies the attribute type to be returned. If the attribute instance to be read is not associated with a query trigger or no additional information is required by the query trigger, an attribute UUID is all that is required. For these attribute instances, supply the attribute UUID in the input array and set the attribute encoding (in sec_attr_encoding_t) to sec_attr_enc_void. If the attribute instance to be read is associated with a query attribute trigger that requires additional information before it can process the query request, use a sec_attr_value_t to supply the requested information. To do this: 1. Set the sec_attr_encoding_t to an encoding type that is compatible with the information required by the query attribute trigger. 2. Set the sec_attr_value_t to hold the required information. Note that if you set num_attr_keys to zero to return all of the object's attributes and that attribute is associated with a query attribute trigger, the attribute trigger will be called with no input attribute information (that would normally have been passed in via the attr_value field). The cursor parameter specifies a cursor of type sec_attr_cursor_t initialized to the point in the attribute list at which to start processing the query. Use the sec_attr_cursor_init function to initialize cursor. If cursor is uninitialized, the behavior is undefined. The num_left parameter contains the number of attributes that were found but could not be returned because of space constraints of the attrs[ ] array. (Note that this number may be inaccurate if the target server allows updates between successive queries.) To obtain all of the remaining attributes, set the size of the attrs[ ] array so that it is large enough to hold the number of attributes listed in num_left.
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. unauthorized registry server unavailable trigger server unavailable error_status_ok
Related Information sec_rgy_attr_lookup_no_expand(3sec) sec_rgy_attr_lookup_by_name(3sec)
|