Table of Contents | Previous | Next | Index

Netscape Directory SDK 3.0 for C Programmer’s Guide
     Chapter 18 Functions

ldap_explode_rdn()

The ldap_explode_rdn() function converts a relative distinguished name (RDN) into its component parts. For more information, see "Getting the Components of a Distinguished Name" on page 129.

Syntax

#include <ldap.h>
char ** ldap_explode_rdn( const char *dn, int notypes );

Parameters

This function has the following parameters:

dn

Relative distinguished name (RDN) that you want separated into components.

notypes

Specifies whether or not type names in the relative distinguished name are returned. This parameter can have the following possible values:

Returns

One of the following values:

Example

The following function call:

ldap_explode_rdn( "ou=Sales + cn=Barbara Jensen", 0 );
returns this array:

{ "ou=Sales", "cn=Barbara Jensen", NULL }

See Also

ldap_explode_dn(), ldap_get_dn().


Table of Contents | Previous | Next | Index

Last Updated: 10/01/98 17:06:23