HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Table 14-19 winsync_pre_add_cb parameters (continued)
DescriptionParameter
The processed Active Directory entry.
ad_entry
The entry to be added to the Directory Server. Any modifications to the new entry
should be made to this entry. This included changing the DN, because the DN of this
processing entry is used as the target DN for the final new entry in the Directory Server.
This processing entry already has the default schema mapping applied.
ds_entry
Returns There are two possible returns:
For a user, this returns 10.
For a group, this returns 11.
14.36.5 winsync_pre_ad_mod_mods_cb
Specifies modifications that must be synced over to the Active Directory server.
This callback, unlike the winsync_pre_add_cb or winsync_pre_mod_cb callbacks, only specifies
a list of changes and the DNs to which the changes are applied. This does not otherwise process
or generate either Directory Server or Active Directory entries.
Syntax
#include "slapi-plugin.h"
typedef void (*winsync_pre_ad_mod_mods_cb)(void *cookie, const
Slapi_Entry *rawentry, const Slapi_DN *local_dn, LDAPMod * const
*origmods, Slapi_DN *remote_dn, LDAPMod ***modstosend);
Parameters This function takes the following parameters:
Table 14-20 winsync_pre_ad_mod_mods_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. This can be NULL.
rawentry
The original Directory Server DN specified in the modification.
local_dn
The list of actual modifications made to the local entry.
origmods
The DN of the entry on the Active Directory server to which to write the changes; this
may be calculated by the sync plug-in.
remote_dn
The list of modifications which will be written to the Active Directory entry. The changes
being sent have the attributes mapped between Directory Server and Active Directory
schema so that the changes to be sent fit with Active Directory schema.
modstosend
Returns There are two possible returns:
If modifications are applied to a user, this returns 14.
If modifications are applied to a group, this returns 15.
14.36.6 winsync_pre_mod_cb
These callbacks are the main entry points that allow the sync plug-in to intercept modifications
between local and remote entries.
Syntax
#include "slapi-plugin.h"
typedef void (*winsync_pre_mod_cb)(void *cookie, const Slapi_Entry
14.36 Synchronization callbacks and data types 147