Sun Java System Directory Server Enterprise Edition 6.0 Developer's Guide

slapi_sdn_get_parent()

Gets the parent DN of a given Slapi_DN structure.

Syntax

#include "slapi-plugin.h"
 void slapi_sdn_get_parent(const Slapi_DN *sdn,Slapi_DN *sdn_parent);

Parameters

This function takes the following parameters:

sdn

Pointer to the initialized Slapi_DN structure containing the DN whose parent is searched.

sdn_parent

Pointer to the Slapi_DN structure where the parent DN is returned.

Description

This function returns a Slapi_DN structure containing the parent DN of the DN kept in the structure pointed to by sdn.

See Also

slapi_sdn_get_backend_parent()