HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
See also slapi_sdn_get_parent()
39.12 slapi_sdn_get_dn()
Description This function retrieves the DN value of a Slapi_DN structure. The returned value
can be the normalized DN (in a canonical format and in lower case) if no other value is present.
Syntax
#include "slapi-plugin.h"
const char * slapi_sdn_get_dn(const Slapi_DN *sdn);
Parameters This function takes the following parameter:
The Slapi_DN structure containing the DN value.sdn
Returns This function returns the DN value.
See also
slapi_sdn_get_ndn()
slapi_sdn_get_parent()
“slapi_sdn_get_rdn()”
39.13 slapi_sdn_get_ndn()
Description This function retrieves the normalized DN (in a canonical format and lower case)
from a Slapi_DN structure and normalizes sdn if it has not already been normalized.
Syntax
#include "slapi-plugin.h"
const char * slapi_sdn_get_ndn(const Slapi_DN *sdn);
Parameters This function takes the following parameter:
The Slapi_DN structure containing the DN value.sdn
Returns This function returns the normalized DN value.
See also “slapi_sdn_get_dn()”
39.14 slapi_sdn_get_ndn_len()
Description This function gets the length of the normalized DN of a Slapi_DN structure. This
function contains the length of the normalized DN and normalizes sdn if it has not already been
normalized.
Syntax
#include "slapi-plugin.h"
int slapi_sdn_get_ndn_len(const Slapi_DN *sdn);
Parameters This function takes the following parameter:
The Slapi_DN structure containing the DN value.sdn
Returns This function returns the length of the normalized DN.
39.15 slapi_sdn_get_parent()
Description This function returns a Slapi_DN structure containing the parent DN of the DN
kept in the Slapi_DN structure pointed to by sdn.
314 Functions for managing DNs