HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
See also
“slapi_mod_get_first_value()”
“slapi_mod_get_next_value()”
33.21 slapi_mod_set_operation()
Sets the operation type of a Slapi_Mod structure.
Syntax
#include "slapi-plugin.h"
void slapi_mod_set_operation(Slapi_Mod *smod, int op);
Parameters This function takes the following parameters:
Pointer to an initialized Slapi_Mod.smod
One of LDAP_MOD_ADD, LDAP_MOD_DELETE, or LDAP_MOD_REPLACE, combined using
the bitwise or operator with LDAP_MOD_BYVALUES.
op
See also “slapi_mod_get_operation()”
33.22 slapi_mod_set_type()
Sets the attribute type of a Slapi_Mod.
Description Sets the attribute type of the Slapi_Mod to a copy of the given value.
Syntax
#include "slapi-plugin.h"
void slapi_mod_set_type(Slapi_Mod *smod, const char *type);
Parameters This function takes the following parameters:
Pointer to an initialized Slapi_Mod.smod
An attribute type.
type
See also “slapi_mod_get_type()”
33.23 slapi_mods2entry()
Description This function creates a Slapi_Entry from a copy of an array of LDAPMod of type
LDAP_MODD_ADD.
Syntax
#include "slapi-plugin.h"
int slapi_mods2entry(Slapi_Entry **e, const char *dn,
LDAPMod **attrs);
Parameters This function takes the following parameters:
Address of a pointer that will be set on return to the created entry.
e
The LDAP DN of the entry.
dn
An array of LDAPMod of type LDAP_MOD_ADD representing the entry attributes.attrs
Returns This function returns one of the following values:
LDAP_SUCCESS if successful.
An LDAP return code if not successful.
See also “slapi_entry2mods()”
33.21 slapi_mod_set_operation() 273