Functions for Sending Entries and Results to the Client
Chapter
15
Function Reference
477
Returns
This function returns one of the following values:
•
0 if successful.
•
-1 if an error occurs.
Description
When you call this function, the server processes the LDAP referrals specified in
the
refs
argument. The server processes referrals in different ways, depending
on the version of the LDAP protocol supported by the client:
•
In the LDAP v3 protocol, references to other LDAP servers (search result
references) can be sent to clients as search results. (For example, a server can
send a mixture of entries found by the search and references to other LDAP
servers as the results of a search.)
When you call the
slapi_send_ldap_referral()
function for LDAP v3
clients, the server sends the referrals specified in the
refs
argument back to
the client as search result references. (The
urls
argument is not used in this
case.)
•
In the LDAP v2 protocol, servers can send the LDAP result code
LDAP_PARTIAL_RESULTS
to refer the client to other LDAP server.
When you call the
slapi_send_ldap_referral()
function for LDAP v2
clients, the server collects the referrals specified in
refs
in the
urls
argument. No data is sent to the LDAP v2 client.
To get the referrals to an LDAP v2 client, you need to pass the
urls
argument
(along with an
LDAP_PARTIAL_RESULTS
result code) to the
slapi_send_ldap_result()
function.
slapi_send_ldap_result()
concatenates the referrals specified in the
urls
argument and sends the
resulting string to the client as part of the error message.
If you want to define your own function for sending referrals, write a function
complies with the type definition
send_ldap_referral_fn_ptr_t
and set the
SLAPI_PLUGIN_DB_REFERRAL_FN
parameter in the parameter block to the name of
your function.
See Also
slapi_send_ldap_result()
slapi_send_ldap_search_entry()
Содержание NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Страница 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Страница 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 26: ...Types of Directory Server Plug Ins 26 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 38: ...Compiling a Directory Server Plug In 38 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 54: ...An Example Pre Operation Plug In 54 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 90: ...Processing an LDAP Abandon Operation 90 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 110: ...Using SASL with an LDAP Client 110 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 122: ...Specifying Start and Close Functions 122 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 214: ...Summary of Data Types and Structures 214 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 554: ...Functions for Registering Additional Plug Ins 554 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 596: ...Parameters for the Virtual Attribute Service 596 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...