HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
39.18 slapi_sdn_isempty()
Description This function checks whether a Slapi_DN structure contains a normalized or
non-normalized value.
Syntax
#include "slapi-plugin.h"
int slapi_sdn_isempty( const Slapi_DN *sdn);
Parameters This function takes the following parameter:
Pointer to the Slapi_DN structure that is going to be checked.sdn
Returns This function returns one of the following values:
1 if there is no DN value (normalized or not) present in the Slapi_DN structure.
0 if sdn is not empty.
See also “slapi_sdn_done()”
39.19 slapi_sdn_isgrandparent()
Checks whether a DN is the parent of the parent of a given DN.
Syntax
#include "slapi-plugin.h"
int slapi_sdn_isgrandparent( const Slapi_DN *parent,
const Slapi_DN *child );
Parameters This function takes the following parameters:
Pointer to the Slapi_DN structure containing the DN which claims to be the
grandparent DN of the DN in child.
parent
Pointer to the Slapi_DN structure containing the DN of the supposed "grandchild" 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 grandparent of the DN in child.
0 if the DN in parent does not match the DN of the grandparent of the DN in child.
See also
slapi_sdn_isparent()
slapi_sdn_issuffix()
slapi_sdn_get_parent()
39.20 slapi_sdn_isparent()
Checks whether a DN is the parent of a given DN.
Syntax
#include "slapi-plugin.h"
int slapi_sdn_isparent( const Slapi_DN *parent,
const Slapi_DN *child );
316 Functions for managing DNs