Creates a new Slapi_RDN structure and sets an RDN value taken from the DN contained in a given Slapi_RDN structure.
#include "slapi-plugin.h" vSlapi_RDN *slapi_rdn_new_sdn(const Slapi_DN *sdn);
This function takes the following parameter:
Slapi_RDN structure containing the DN value whose RDN will be used to initialize the new Slapi_RDN structure.
This function returns a pointer to the new Slapi_RDN structure initialized with the RDN taken from the DN value in dn .
This function creates a new Slapi_RDN structure and initializes its RDN with the value taken from the DN passed within the Slapi_RDN structure of the sdn parameter.
The memory is allocated by the function itself.