Determining If An Operation Was Abandoned; Working With Entries, Attributes, And Values - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

If you are fulfilling a search request and need to send matching entries back to
the client, call the
If you need to refer the LDAP request to a different LDAP server, call the
slapi_str2filter()
For example, the following statement sends an
the client.
slapi_send_ldap_result( pb, LDAP_SUCCESS, NULL, \
NOTE

Determining If an Operation Was Abandoned

At any point in time, the client can choose to abandon an LDAP operation. When
writing database functions, keep in mind that you should periodically check to see
if the operation has been abandoned.
To determine if an operation has been abandoned, call
For example:
if ( slapi_op_abandoned( pb ) ) {
}

Working with Entries, Attributes, and Values

This section discusses how to create new entries in the directory and how to
convert them to LDIF and back.
In certain situations, you will need to pass directory entries between the front-end
and the client. For example, it you create a custom add function, the front-end
passes to your function an entry in the parameter block. When you perform a
search
slapi_send_ldap_search_entry()
function.
"The operation was processed successfully.\n", 0, NULL );
It is important that you send only one result per operation back to the
client.
slapi_log_error( SLAPI_LOG_PLUGIN, "my_function",
"The operation was abandoned.\n" );
return 1;
operation, you return each matching search entry to the client.
Determining If an Operation Was Abandoned
function for each entry.
status code back to
LDAP_SUCCESS
slapi_op_abandoned()
Chapter 5
Front-End API Functions
.
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents