HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
See also “slapi_sdn_free()”
39.9 slapi_sdn_dup()
Duplicates a Slapi_DN structure.
Syntax
#include "slapi-plugin.h"
Slapi_DN * slapi_sdn_dup(const Slapi_DN *sdn);
Parameters This function takes the following parameter:
Pointer to the Slapi_DN structure to duplicate.sdn
Returns This function returns a pointer to a duplicate of sdn.
See also
“slapi_sdn_copy()”
“slapi_sdn_new()”
39.10 slapi_sdn_free()
Description This function frees the Slapi_DN structure and its contents pointed to by the
contents of sdn.
Syntax
#include "slapi-plugin.h"
void slapi_sdn_free(Slapi_DN **sdn);
Parameters This function takes the following parameter:
Pointer tot he pointer of the Slapi_DN structure to be freed.sdn
See also
“slapi_sdn_done()”
“slapi_sdn_new()”
39.11 slapi_sdn_get_back end_parent()
Gets the DN of the parent of an entry within a specific back end.
Syntax
#include "slapi-plugin.h"
void slapi_sdn_get_back end_parent(const Slapi_DN *sdn,
Slapi_DN *sdn_parent,const Slapi_Back end *back end);
Parameters This function takes the following parameters:
DN of the entry whose parent is searched.
sdn
Parent DN of sdn.sdn_parent
Back end of which the parent of sdn is to be searched.back end
Returns This function gets the parent DN of an entry within a given back end. The parent DN
is returned is sdn_parent, unless sdn is empty or is a suffix of the back end itself. In this case,
sdn_parent is empty.
Memory concerns A Slapi_DN structure for sdn_parent must be allocated before calling
this function.
39.9 slapi_sdn_dup() 313