Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 264

Table of Contents

Advertisement

Functions for Managing DNs
Returns
This function returns a pointer to the end of the
example, if the RDN is
be
cn=Jane,c=US,0=example
See Also
slapi_dn_normalize()
slapi_dn_parent()
Gets a copy of the distinguished name (DN) of the parent of an entry. Before calling
this function, you should call
and convert all characters to lowercase.
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.
264
Netscape Directory Server Plug-In Programmer's Guide • May 2002
cn=Jane
.
slapi_dn_normalize_case()
function instead.
DN of the entry for which you want to find the parent.
if the specified DN is
o=example.com
that has been normalized. For
dn
and the DN is
c=US,o=example
, if the DN is an empty string, or if the DN has
NULL
).
, the new DN will
to normalize the DN

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents