Creates a new Slapi_DN structure and sets a normalized DN value.
#include "slapi-plugin.h" Slapi_DN *slapi_sdn_new_ndn_byval(const char *ndn);
This function takes the following parameter:
The normalized DN value to be set in the new Slapi_DN structure.
This function returns a pointer to the new Slapi_DN structure with a normalized DN value set to the content of ndn.
This function creates a new Slapi_DN structure and initializes its normalized DN with the value of ndn. The normalized DN of the new structure will point to a copy of the string pointed to by ndn (the normalized DN value is passed into the parameter by value). The FLAG_DND flag is set and the internal counter is incremented.
The memory is allocated by the function itself.