HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Syntax
#include "slapi-plugin.h"
void slapi_sdn_get_parent(const Slapi_DN *sdn, Slapi_DN *sdn_parent);
Parameters This function takes the following parameters:
Pointer to the Slapi_DN structure containing the DN whose parent is searched.sdn
Pointer to the Slapi_DN structure where the parent DN is returned.sdn_parent
See also slapi_sdn_get_backend_parent()
39.16 slapi_sdn_get_rdn()
Description This function takes the DN stored in the Slapi_DN structure pointed to by sdn
and retrieves its returned RDN within the Slapi_RDN structure pointed to by rdn.
Syntax
#include "slapi-plugin.h"
void slapi_sdn_get_rdn(const Slapi_DN *sdn, Slapi_RDN *rdn);
Parameters This function takes the following parameters:
Pointer to the Slapi_DN structure containing the DN.sdn
Pointer to the Slapi_RDN structure where the RDN is returned.rdn
See also
“slapi_sdn_get_dn()”
slapi_sdn_add_rdn()
“slapi_sdn_is_rdn_component()”
39.17 slapi_sdn_is_rdn_component()
Not implemented; do not use.
Description This function checks whether a Slapi_DN structure contains an RDN value that
is a component of the DN structure.
Syntax
#include "slapi-plugin.h"
int slapi_sdn_is_rdn_component(const Slapi_DN *rdn,
const Slapi_Attr *a, const Slapi_Value *v);
Parameters This function takes the following parameters:
Pointer to the Slapi_DN structure that is going to be checked.rdn
A pointer to an attribute used to check the RDN value.
a
Holds the value of the attribute.
v
Returns This function returns one of the following values:
1 if there is no RDN value (normalized or not) present in the Slapi_DN structure.
0 if rdn is a component of the Slapi_DN structure.
See also “slapi_sdn_get_rdn()”
39.16 slapi_sdn_get_rdn() 315