HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameters:
Pointer to the Slapi_DN structure containing the DN which claims to be the parent
of the DN in child.
parent
Pointer to the Slapi_DN structure containing the DN of the supposed child of the DN
in the structure pointed to by parent.
child
Returns This function returns one of the following values:
1 if the DN in parent is the parent of the DN in child.
0 if the DN in parent does not match the DN of the parent of the DN in child.
See also
slapi_sdn_issuffix()
slapi_sdn_get_parent()
39.21 slapi_sdn_issuffix()
Checks whether a Slapi_DN structure contains a suffix of another Slapi_DN structure.
Syntax
#include "slapi-plugin.h"
int slapi_sdn_issuffix(const Slapi_DN *sdn, const Slapi_DN *suffixsdn);
Parameters This function takes the following parameters:
Pointer to the Slapi_DN structure to be checked.sdn
Pointer to the Slapi_DN structure of the suffix.suffixsdn
Returns This function returns one of the following values:
1 if the DN is suffixsdn is the suffix of sdn.
0 if the DN in suffixsdn is not a suffix of sdn.
See also slapi_sdn_isparent()
39.22 slapi_sdn_new()
Description This function creates a new Slapi_DN structure by allocating the necessary memory
and initializing both DN and normalized DN values to NULL.
Syntax
#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_new();
Parameters This function takes no parameters.
Returns This function returns a pointer to the newly allocated, and still empty, Slapi_DN
structure.
See also
“slapi_sdn_free()”
“slapi_sdn_copy()”
“slapi_sdn_done()”
39.23 slapi_sdn_new_dn_byref()
Description This function creates a new Slapi_DN structure and initializes its DN with the
value of dn. The DN of the new structure will point to the same string pointed to by dn; the DN
39.21 slapi_sdn_issuffix() 317