HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Table 14-22 winsync_search_params_cb parameters (continued)
DescriptionParameter
Pointer to the Slapi_Attr structure representing the first attribute in the entry. This can be
either NULL or a null-terminated array of strings. The attributes can be added using
slapi_ch_array_add. For example:
slapi_ch_array_add(attrs,
slapi_ch_strdup("myattr"));
attrs are freed using slapi_ch_array_free, so the caller must own the memory.
attrs
Pointer to the LDAPControl* structure. This can be either NULL or a null-terminated array of
controls. To define the LDAPControl, use slapi_add_control_ext:
slapi_add_control_ext(serverctrls,
mynewctrl, 1 / add a copy /);
serverctrls are freed with ldap_controls_free, so the caller must own memory.
serverctrls
Returns There are four possible returns:
For a DirSync search, this returns 2.
To search the Active Directory subtree, this returns 3.
To search the Directory Server subtree, this returns 4.
To search the Directory Server from the base DN, this returns 5.
14.36 Synchronization callbacks and data types 149