To determine if a value is a suffix for a DN, call
determine if a DN is one of the suffixes served by the backend, call the
slapi_dn_isbesuffix()
Server Suffixes
The
directive in the server configuration file specifies which DNs are
suffix
served by a particular backend. For example, suppose the suffix directive is
configured to the following:
suffix "o=Example Corporation, c=US"
Here, all entries within the
this backend.
Getting the Parent DN of a DN
To get a copy of the parent DN for a DN, call the
the
slapi_dn_beparent()
These functions return the parent DN of
slapi_dn_beparent()
When you are done working with the parent DN, you should free it from memory
by calling
.
free()
Normalizing a DN
If you need to compare DNs (for example, if you are searching your database for a
particular DN), you should normalize the DNs that you are comparing to ensure
that they are properly compared.
You can use the following front-end function to normalize and convert the case of a
DN:
•
Use
slapi_dn_normalize()
•
Use
slapi_dn_ignore_case()
•
Use
slapi_dn_normalize_case()
characters in the DN to lowercase.
function.
o=Example Corporation,c=US
function.
. If
dn
will return
.
NULL
normalize a DN.
to convert all characters in a DN to lowercase.
to both normalize the DN and convert all
Working with DNs and RDNs
slapi_dn_issuffix()
subtree are served by
slapi_dn_parent()
is a suffix served by the backend,
dn
Chapter 5
Front-End API Functions
. To
function or
75
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