HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
DescriptionParameter
The Directory Server suffix being synchronized.
ds_suffix
The Active Directory suffix being synchronized.
ad_suffix
Returns There are two possible returns:
For a Directory Server user, this returns 12.
For a Directory Server group, this returns 13.
See also
winsync_plugin_call_pre_ds_add_*
map_entry_dn_inbound
14.36.3 winsync_plugin_init_cb
Initializes the synchronization plug-in.
Whenever synchronization begins, the sync plug-in defines this callback to initialize the other
sync callbacks.
The Directory Server and Active Directory subtrees are passed in from the sync agreement as
read-only attributes. The return value is private data for the sync plug-in which is passed with
each sync callback.
Syntax
#include "slapi-plugin.h"
typedef void * (*winsync_plugin_init_cb)(const Slapi_DN *ds_subtree,
const Slapi_DN *ad_subtree);
Parameters This function takes the following parameters:
Table 14-18 winsync_plugin_init_cb parameters
DescriptionParameter
The Directory Server subtree being synchronized.
ds_subtree
The Active Directory subtree being synchronized.
ad_subtree
Returns If the plug-in is successfully initialized, the server returns 1.
14.36.4 winsync_pre_add_cb
Called whenever a new entry is being added to the Directory Server after being synced over
from the Active Directory server.
Syntax
#include "slapi-plugin.h"
typedef void (*winsync_pre_add_cb)(void *cookie, const Slapi_Entry
*rawentry, Slapi_Entry *ad_entry, Slapi_Entry *ds_entry);
Parameters This function takes the following parameters:
Table 14-19 winsync_pre_add_cb parameters
DescriptionParameter
A cookie to identify the specific Directory Server entry to the plug-in during the
operation. This cookie is used by the server to retrieve the entry information to
determine what actions to take during synchronization.
cookie
The unprocessed Active Directory entry, as it is read directly from Active Directory.
This entry is read-only.
rawentry
146 Data type and structure reference