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.

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 Slapi_DN structure containing the DN whose parent is searched.
sdn_parent
Pointer to the Slapi_DN structure where the parent DN is returned.