HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
*rawentry, Slapi_Entry *ad_entry, Slapi_Entry *ds_entry, Slapi_Mods
*smods, int *do_modify);
Parameters This function takes the following parameters:
Table 14-21 winsync_pre_mod_cb parameters
DescriptionParameter
The unprocessed Active Directory entry, as it is read directly from Active Directory.
This entry is read-only.
rawentry
The processed Active Directory entry. This DN is set if the modify is against the Active
Directory entry.
ad_entry
The entry to be added to the Directory Server. This DN is set if the modify is against
the Directory Server entry.
ds_entry
Pointer to an initialized Slapi_Mod. These contain the post-processing modifications.
These modifications should be updated by the sync plug-in to perform any mappings
or other changes.
smods
Indicates whether an operation will be performed on the entry. If there are changes to
be synced to the entry or if the sync plug-in has changed any of the smods, then this
value is true, meaning that an operation should be performed on the entry. If all the
smods were removed by the sync plug-in, meaning there is no operation to perform,
then the value is false.
do_modify
Returns There are four possible returns:
If modifications have been performed on an Active Directory user, this returns 6.
If modifications have been performed on an Active Directory group, this returns 7.
If modifications have been performed on a Directory Server user, this returns 8.
If modifications have been performed on a Directory Server group, this returns 9.
14.36.7 winsync_search_params_cb
Allows configurable search parameters for searchs of the Directory Server and Active Directory
instances during synchronization.
Syntax
#include "slapi-plugin.h"
typedef void (*winsync_search_params_cb)(void *cookie,
const char *agmt_dn, char **base, int *scope, char **filter,
char ***attrs, LDAPControl ***serverctrls);
Parameters This function takes the following parameters:
Table 14-22 winsync_search_params_cb parameters
DescriptionParameter
The original Active Directory base DN which is specified in the sync agreement.
agmt_dn
The original scope of the search on the Active Directory server. This value is explicitly set. For
example:
*scope = 42;
scope
The base DN on the Directory Server to search for synchronization. To set this value, free the
base first using slapi_ch_free_string() so there are no static strings.
base
The filter to use to search for entries in the Directory Server base. To set the filter, free it along
with the base using slapi_ch_free_string(). For example:
slapi_ch_free_string(filter);
*base =
slapi_ch_strdup("(objectclass=foobar)");
filter
148 Data type and structure reference