HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
14.36.1 winsync_can_add_to_ad_cb
Sets a callbacks to determine if an entry in the Directory Server should be added to the Active
Directory server if the entry does not already exist in the Windows domain.
Syntax
#include "slapi-plugin.h"
typedef int (*winsync_can_add_to_ad_cb)(void *cookie, const Slapi_Entry
*local_entry, const Slapi_DN *remote_dn);
Parameters This function takes the following 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 Directory Server copy of the entry being checked by the server.
local_entry
The remote copy of the entry to add to the Active Directory server.
remote_dn
Returns If the server is allowed to add the entry to the Active Directory server, then
winsync_can_add_to_ad_cb declaration returns 16.
14.36.2 winsync_get_new_dn_cb
Specifies a DN for a new entry being synced from the Active Directory server over to the Directory
Server instance.
When a new entry is created on the Active Directory server and it synced over to the Directory
Server, it may be necessary to generate a new DN for the entry. This can result in a naming
conflict between the name on one server and the generated name from the synchronization
plug-in. This callback function allows the sync plug-in to set the new DN for the entry.
The map_entry_dn_inbound function is called to idenitfy the DN for the new entry is needed.
The winsync_plugin_call_pre_ds_add_* callbacks can also be used to set the DN for the
new entry before it is stored in the Directory Server.
This data type is also used when an attribute with a DN as a value, such as owner or secretary,
is synchronized.
Syntax
#include "slapi-plugin.h"
typedef void (*winsync_get_new_dn_cb)(void *cookie, const Slapi_Entry
*rawentry, Slapi_Entry *ad_entry, char **new_dn_string,
const Slapi_DN *ds_suffix, const Slapi_DN *ad_suffix);
Parameters This function takes the following 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
The processed Active Directory entry.
ad_entry
The given value of the DN for the new entry. The default value is created
by the sync code slapi_ch_free_string() is called first, then slapi_ch_malloc()
to use the default value.
new_dn_string
14.36 Synchronization callbacks and data types 145