Functions for Managing DNs
If you want to check if the DN is the suffix of the local database, call the
slapi_dn_beparent()
Syntax
#include "slapi-plugin.h"
char *slapi_dn_parent( char *dn );
Parameters
This function takes the following parameters:
dn
Returns
This function returns one of the following values:
•
The DN of the parent entry.
•
Null
no parent (for example,
See Also
slapi_dn_beparent()
slapi_dn_plus_rdn()
Adds an RDN to DN.
Syntax
#include "slapi-plugin.h"
char *slapi_dn_plus_rdn( const char *dn, const char *rdn);
Parameters
This function takes the following parameters:
dn
rdn
306
Netscape Directory Server Plug-In Programmer's Guide • August 2002
function instead.
DN of the entry for which you want to find the parent.
if the specified DN is
o=example.com
DN value to which a new RDN is to be added.
RDN value that is to be added to the DN value in dn.
, if the DN is an empty string, or if the DN has
NULL
).
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.1 - PLUG-IN and is the answer not in the manual?
Questions and answers