slapi_dn_get_rdn_count()

This routine returns the number of RDNs in a DN.

Syntax
#include <slapi-plugin.h>
long slapi_dn_get_rdn_count(
SLAPI_LDAPDN *ldapdn);
Input Parameters
ldapdn
Specifies the address of an internal SLAPI_LDAPDN structure. The address of this structure is obtained by calling slapi_dn2ldapdn().
Usage
This routine obtains the number of RDNs in a DN.
Errors
This routine returns the number of RDNs in an LDAP DN structure.
See also
slapi_dn2ldapdn() and slapi_dn_get_rdn().