HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
#include "slapi-plugin.h"
int slapi_get_supported_controls_copy( char ***ctrloidsp,
unsigned long **ctrlopsp );
Parameters This function takes the following parameters:
Pointer to a character array that will receive the set of supported control OIDs. Pass
NULL for this parameter if you do not wish to receive the OIDs.
ctrloidsp
Pointer to an unsigned long array that will receive the supported operation values for
each control in the ctrloidsp array. Pass NULL for this parameter if you do not wish
to receive the supported operation values.
ctrlopsp
Returns This function returns one of the following values:
0 If successful.
nonzero value If an error occurs.
Memory concerns The returned ctrloidsp array should be freed by calling
slapi_ch_array_free(). The returned ctrlopsp array should be freed by calling
slapi_ch_free().
See also
“slapi_register_supported_control()”
slapi_ch_array_free()
21.8 slapi_register_supported_control()
Description Registers the specified control with the server. This function associates the control
with an object identification (OID). When the server receives a request that specifies this OID,
the server makes use of this information to determine if the control is supported by the server
or its plug-ins.
Syntax
#include "slapi-plugin.h"
void slapi_register_supported_control( char *controloid,
unsigned long controlops );
Parameters This function takes the following parameters:
OID of the control you want to register.
controloid
Operation to which the control is applicable.
controlops
The specified control applies to the LDAP bind operation.
SLAPI_OPERATION_BIND
The specified control applies to the LDAP unbind operation.
SLAPI_OPERATION_UNBIND
The specified control applies to the LDAP search operation.
SLAPI_OPERATION_SEARCH
The specified control applies to the LDAP modify operation.
SLAPI_OPERATION_MODIFY
The specified control applies to the LDAP add operation.
SLAPI_OPERATION_ADD
The specified control applies to the LDAP delete operation.
SLAPI_OPERATION_DELETE
The specified control applies to the LDAP modify DN operation.
SLAPI_OPERATION_MODDN
The specified control applies to the LDAPv3 modify RDN operation.
SLAPI_OPERATION_MODRDN
The specified control applies to the LDAP compare operation.
SLAPI_OPERATION_COMPARE
The specified control applies to the LDAP abandon operation.
SLAPI_OPERATION_ABANDON
The specified control applies to the LDAPv3 extended operation.
SLAPI_OPERATION_EXTENDED
21.8 slapi_register_supported_control() 199