HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Parameters This function takes the following parameters:
The DN of the entry subject of scope test.
dn
The base DN against which dn is going to be tested.base
The scope tested. This parameter can take one of the following levels:
LDAP_SCOPE_BASE- where the entry DN should be the same as the base DN.
LDAP_SCOPE_ONELEVEL- where the base DN should be the parent of the entry.
DNLDAP_SCOPE_SUBTREE- where the base DN should at least be the suffix of the
entry DN.
scope
Returns This function returns nonzero if dn matches the scoping criteria given by base and
scope.
See also
slapi_sdn_compare()
slapi_sdn_isparent()
slapi_sdn_issuffix()
39.29 slapi_sdn_set_dn_byref()
Description This function sets a DN value in a Slapi_DN structure. The DN of the new structure
will point to the same string pointed to by dn; the DN value is passed into the parameter by
value. However, the FLAG_DN flag is not set, and no internal counter is incremented.
Syntax
#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_set_dn_byref(Slapi_DN *sdn, const char *dn);
Parameters This function takes the following parameters:
The target Slapi_DN structure.sdn
The DN value to be set in sdn.dn
Returns This function returns a pointer to the Slapi_DN structure containing the new DN
value.
See also
“slapi_sdn_set_dn_byval()”
“slapi_sdn_set_dn_passin()”
39.30 slapi_sdn_set_dn_byval()
Description This function sets a DN value in a Slapi_DN structure. The DN of the new structure
will point to a copy of the string pointed to by dn; the DN value is passed into the parameter by
value. The FLAG_DN flag is set, and the internal counters are incremented.
Syntax
#include "slapi-plugin.h"
Slapi_DN *slapi_sdn_set_dn_byval(Slapi_DN *sdn, const char *dn);
Parameters This function takes the following parameters:
The target Slapi_DN structure.sdn
The DN value to be set in sdn.dn
320 Functions for managing DNs