Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 168

Table of Contents

Advertisement

Summary of Data Types and Structures
Syntax
#include "slapi-plugin.h"
typedef int (*send_ldap_search_entry_fn_ptr_t)
( Slapi_PBlock *pb, Slapi_Entry *e, LDAPControl **ectrls,
char **attrs, int attrsonly );
Description
The
slapi_send_ldap_search_entry()
entries found by a search back to the client. You can replace the function that sends
entries to the client with your own function. To do this:
Write a function with the prototype specified by
1.
send_ldap_search_entry_fn_ptr_t
In your plug-in initialization function, register your function by setting the
2.
SLAPI_PLUGIN_DB_ENTRY_FN
your function.
See
slapi_send_ldap_search_entry()
that sends entries to clients.
See Also
slapi_send_ldap_search_entry()
Slapi_Attr
Represents an attribute in an entry.
Syntax
typedef struct slapi_attr Slapi_Attr;
Description
Slapi_Attr
a directory entry. In certain cases, your server plug-in may need to work with an
entry's attributes.
The following table summarizes the front-end API functions that you can call to
work with attributes.
To do this...
Iterate through the attributes in an entry
168
Netscape Directory Server Plug-In Programmer's Guide • May 2002
is the data type for an opaque structure that represents an attribute in
function is responsible for sending
.
parameter in the parameter block to the name of
for information on the default function
Call this function
slapi_entry_first_attr(),
slapi_entry_next_attr()

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents