The ds_search( ) call requires a selection input parameter to specify what information from the entry is requested. The selection parameter of the ds_search( ) call in acl.h requests information on all attributes, as shown in the following code fragment:
static OM_descriptor selection_acl[] = {
OM_OID_DESC(OM_CLASS, DS_C_ENTRY_INFO_SELECTION),
{DS_ALL_ATTRIBUTES, OM_S_BOOLEAN, OM_FALSE},
OM_OID_DESC(DS_ATTRIBUTES_SELECTED, DSX_A_ACL),
{DS_INFO_TYPE, OM_S_ENUMERATION, DS_TYPES_AND_VALUES},
OM_NULL_DESCRIPTOR
};
As shown in the code fragment, DS_ALL_ATTRIBUTES has a syntax of OM_S_BOOLEAN that is set to OM_FALSE, indicating that only the requested attributes of the entry are to be returned. The ACL attribute's types and values are selected. DS_INFO_TYPE has a value of DS_TYPES_AND_VALUES, indicating that both the attribute types and the attribute values in the entry are returned.