Functions for Managing RDN
Parameters
This function takes the following parameters:
rdn
index
type
value
Returns
This function returns one of the following values:
•
The real position of the retrieved RDN if the operation was successful.
•
-1
Description
This function gets the type/value pair corresponding to the RDN stored in the
next (index+1) position inside
values is always one unit below its real position in the array.
See Also
slapi_rdn_get_first()
slapi_rdn_get_rdn()
slapi_rdn_get_num_components()
Gets the number of RDN type/value pairs present in a
Syntax
#include "slapi-plugin.h"
int slapi_rdn_get_num_components(Slapi_RDN *rdn);
Parameters
This function takes the following parameter:
448
Netscape Directory Server Plug-in Programmer's Guide • October 2004
The Slapi_RDN structure containing the RDN value(s).
Indicates the position of the RDN the precedes the currently
desired RDN.
Repository that will hold the type (cn, o, ou, etc.) of the next
(index+1) RDN. If this parameter is NULL at the return of the
function, the RDN does not exist.
Repository that will hold the value of the next (index+1) RDN. If
this parameter is NULL, the RDN does not exist.
if there is no RDN in the index position.
. The index of an element within an array of
rdn
structure.
Slapi_RDN
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers